08.06.2012, 12:53
Код:
if(strcmp(cmd,"/banip",true)==0) { if(IsPlayerConnected(playerid)) { if(IsPlayerAdmin(playerid)) { tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_WHITE,"USAGE: /banip [ip]"); return 1; } format(string,sizeof(string),"banip %s",tmp); SendRconCommand(string); SendRconCommand("reloadbans"); } else { SendClientMessage(playerid, COLOR_GRAD2, " You are not authorized to use that command !"); } } return 1; }