Counter-Strike 1.6 Download Forum

Counter-Strike Server RSS Feed atom+xml Counter-Strike Server RSS Feed Counter-Strike Server CsBesTiaL Top 100 BesTiaL Autentificare Inregistrare Profil Mesaje private FAQ Grupuri Counter-Strike
 Servere-le de Counter-Strike CsBesTiaL sunt Pornite
cs bestial
Custom Search
Get our toolbar! Download Counter-Strike 1.6 andoird application
pliguin remove admin
Du-te la pagina despre counter-strike
 
Creaza un subiect nou   Raspunde la subiect
Mesaj
CosmiN_>c0smin
Cont Blocat
Cont Blocat


Data Inscrierii: 04/Apr/2012
Mesaje: 592
Locatie: Galati

Mesaj

2012-04-14    cstrike pliguin remove admin


Descriere: Acest plugin va ajuta sa scoateti un admin din lista din users.ini. Acest plugin defapt adauga ; in fata userilor stersi prin acest plugin.

Nume: Remove Admin
Versiune:0.2
Autor:FireW@ll


Cod:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Remove admins"
#define VERSION "0.2"
#define AUTHOR "FireW@ll"

enum{TYPE_STEAM,TYPE_NAME}

public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR);
register_cvar("ar_version",VERSION,FCVAR_SERVER);
register_clcmd("amx_removeadmin","remove_cmd",ADMIN_RCON,"amx_removeadmin <steamid or nick>");
}

public remove_cmd(id,level,cid)
{
if(!(get_user_flags(id) & ADMIN_RCON))
return PLUGIN_HANDLED;

new players[32], inum, i, player;
new TARGET[32], playerinfo[32];
new command_type;
new bool:is_found = false;

get_players(players,inum);

read_argv(1,TARGET,31);
remove_quotes(TARGET);

if(equal(TARGET,"STEAM_",6))
{
command_type = TYPE_STEAM;

for(i = 0; i < inum; i++)
{
player = players[i];

get_user_authid(player, playerinfo, 31);

if(equal(playerinfo, TARGET))
{
remove_user_flags(player);
break;
}
}
}
else
{
command_type = TYPE_NAME;

for(i = 0; i < inum; i++)
{
player = players[i];

get_user_name(player,playerinfo,31);
if( containi(playerinfo,TARGET) != -1 )
{
remove_user_flags(player);
break;
}
}
}
new filename[64], text[512];
get_configsdir(filename,63);
format(filename,63,"%s/users.ini",filename);

new file = fopen(filename,"rt");
i = 0;

while(!feof(file))
{
fgets(file,text,50);

i++;

if(text[0] == ';')
continue;

parse(text,playerinfo,31,players,1);

if((command_type == TYPE_STEAM && equal(playerinfo, TARGET))
|| (command_type == TYPE_NAME && containi(playerinfo, TARGET) != -1))
{
is_found = true;
format(text,511,";%s",text);
write_file(filename,text,i-1);

console_print(id,"********************ADMIN ID REMOVAL TOOL**************");
console_print(id,"");
console_print(id," The target, %s, was removed from users.ini ",TARGET);
console_print(id,"");
console_print(id,"********************ADMIN ID REMOVAL TOOL**************");

server_cmd("amx_reloadadmins")
break;
}
}

if(!is_found)
{
console_print(id,"********************ADMIN ID REMOVAL TOOL**************");
console_print(id," The entry, %s, was not found in users.ini ",TARGET);
console_print(id,"********************ADMIN ID REMOVAL TOOL**************");
}

fclose(file);

return PLUGIN_HANDLED;
}






Instalare:


1. Fisierul remove_admins.sma il puneti in addons/amxmodx/scripting

2. Fisierul remove_admins.amxx il puneti in addons/amxmodx/plugins

3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Cod:
remove_admins.amxx


Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):
amx_removeadmin "STEAMID/parte_din_numele_din_users.ini" - dezactiveaza/elimina administratorul respectiv
Cs Forum
Vezi profilul utilizatorului Expediaza mesaj privat
WwW.PlacePuB.Ro
WwW.PlacePuB.Ro
placepub




Mesaj

2012-04-14    cstrike




Cs Forum
Afiseaza mesajele despre Counter-Strike pentru a le previzualiza:    
Creaza un subiect nou   Raspunde la subiect    Counter Strike Forum - Tutoriale Counter-Strike 1.6 download -> Tutoriale Counter-Strike 1.6 cstrike Ora este GMT + 2 ore
Du-te la pagina despre counter-strike
Pagina 1 din 0

 
Mergi direct la pagina de counter-strike 1.6:  
Nu puteti crea un subiect nou In acest forum despre counter-strike
Nu puteti raspunde In subiectele acestui forum despre counter-strike
Nu puteti modifica mesajele proprii din acest forum despre counter-strike
Nu puteti sterge mesajele proprii din acest forum despre counter-strike
Nu puteti vota In chestionarele din acest forum despre counter-strike

Privacy Policy | Politica de Confidentialitate



 Safe Site

By Bogdan Maxim. Published in the Counter-strike 1.6 Download category