09.10.2015, 19:46
is this code good? the player i banned. Doesn't get the message.
Код:
CMD:trollban(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]:You are not rcon admin"); new targetid, str[75]; if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,COLOR_ERROR,"Usage(playerid)"); format(str,sizeof(str),"(ADMIN BAN): An admin has banned %d",targetid); SendClientMessageToAll(COLOR_ADMIN,str); return 1; }