/kick command only usable by a name
#3

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.
Reply


Messages In This Thread
/kick command only usable by a name - by [GF]sIdEkIcK - 12.07.2009, 14:49
Re: /kick command only usable by a name - by MenaceX^ - 12.07.2009, 14:53
Re: /kick command only usable by a name - by Burridge - 12.07.2009, 14:57
Re: /kick command only usable by a name - by MenaceX^ - 12.07.2009, 15:00
Re: /kick command only usable by a name - by [GF]sIdEkIcK - 12.07.2009, 15:03
Re: /kick command only usable by a name - by MenaceX^ - 12.07.2009, 15:05
Re: /kick command only usable by a name - by [GF]sIdEkIcK - 12.07.2009, 15:38
Re: /kick command only usable by a name - by MenaceX^ - 12.07.2009, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)