19.08.2015, 21:34
PHP код:
new user[32];
GetPlayerName(playerid, user, sizeof(user));
if(!strcmp(user, "YourNameThere", true)) // Check if player name it's 'YourNameThere' - The name can be too 'YOURnameTHere' ...
{
SendClientMessage(playerid, -1, "You are the right user.");
}
else return SendClientMessage(playerid, -1, "Only 'YourNameThere' can use that command.");
}