15.07.2012, 07:53
lol?
you should use strcmp like
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;
}