12.02.2014, 17:41
Код:
CMD:desban(playerid,params[]) { new IDDESBAN[158]; if(sscanf(params"s[158]", IDDESBAN)) return SendClientMessage(playerid, - 1,"Burro use o CMD certo: /desban Nick"); if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid,white,"» "cred"Vocк nгo tem permissгo para usar este comando!"); static string[500], id; format(string,sizeof string, Userfile,GetPName(IDDESBAN)); INI_Open(string); INI_WriteInt("Banned",0); INI_Save(); INI_Close(); format(string,sizeof string,"%s desbaniu %s.",GetPName(playerid),GetPName(IDDESBAN)); return 1; }
Код:
CMD:desbanip(playerid,params[]) { new Float: IP[80], String1[128] ; if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid,red,"[x] Vocк nгo tem permissгo para fazer isso!"); if(isnull(params,"s",IP)) return SendClientMessage(playerid,red,"{FFFF00}[ > ] Uso correto: /desbanip [ip]"); format(String1,sizeof(String1),"unbanip %s",IP); SendRconCommand(String1); SendRconCommand("reloadbans"); SendClientMessage(playerid,orange,"{FFFF00}[ > ] O IP %s foi desbanido com sucesso! ", IP); return 1; }