Quote:
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
pawn Код:
if(strcmp( "/ban",cmdtext ,true,4) == 0) { if(IsPlayerAdmin(playerid)) { Ban(playerid); new string[256]; new Banned[MAX_PLAYER_NAME]; GetPlayerName(playerid,Banned,sizeof(Banned)); format(string,sizeof(string),"%s tried to ban someone and got himself/herself banned",Banned); SendClientMessageToAll(COLOR,string);
} else { SendClientMessage(playerid,Color,"Youre not an Rcon Admin"); } return 1; }
|
This will not send the correct message, you should get the player's name before banning him/her.