16.05.2011, 12:23
Just made this real fast;
USAGE:
pawn Код:
stock IsPlayerName(playerid,playername[])
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
if(!strcmp(pname,playername)) return 1;
else return 0;
}
pawn Код:
if(IsPlayerName(playerid,"INSERTNAME"))
{
}