Command for specified player.
#4

lol?
you should use strcmp like
pawn Код:
CMD:test(playerid,params[])
{  
   new pname[24];
   GetPlayerName(playerid,pname,sizeof(pname))
   if(!strcmp(pname,"NAME",false)) // it is case sensitive check to see if player who use command has name "NAME"
   {
      SendClientMessage(playerid,-1,"Yo! this is special command for you only <3 ");
     //command code
   }else return SendClientMessage(playerid,-1,"YOU NOT THE PERSON FOR WHICH THIS COMMAND HAS BEEN MADE");
   return 1;
}
Reply


Messages In This Thread
Command for specified player. - by Kalroz - 15.07.2012, 07:42
Re: Command for specified player. - by Lordzy - 15.07.2012, 07:46
Re: Command for specified player. - by JaKe Elite - 15.07.2012, 07:52
Re: Command for specified player. - by Niko_boy - 15.07.2012, 07:53
Re: Command for specified player. - by clarencecuzz - 15.07.2012, 08:21

Forum Jump:


Users browsing this thread: 1 Guest(s)