23.11.2010, 00:32
I suggest you use strcmp, over strfind.
It's quite easier.
Edit:
If you look at iggy's code it has the full command.
It's quite easier.
pawn Код:
new pName[24];
GetPlayerName(playerid, pName, 24);
if(!strcmp(pName, "<Name>", true)) return SendClientMessage(playerid, 0xFFFFFFFF, "ERROR: You are not authorized to do this command!");
{
//This means their name is correct and matching the specified name.
}
return 1;
If you look at iggy's code it has the full command.