16.05.2009, 08:47
how do i do something like only if a player has This username they can work the command or else it will just say "You dont have permission to this command"
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "Your_Name", true) != 0)
{
// player has that name, enter your code.
}
else
{
// player doesn't have that name, enter your code.
}