Quote:
|
Originally Posted by MenaceX^
pawn Код:
if(strcmp(cmdtext,"/kick",true)) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); if(strcmp(name,"MenaceX",true)) return SendClientMessage(playerid,color,"You are not allowed to use this command."); // then the rest of the code. }
|
You would want to add somthing like
pawn Код:
if(AccountInfo[LoggedIn][playerid] =1)
Otherwise anyone could come in the sevrer under that name, not log in, and still use the command.