if player username
#1

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"
Reply
#2

Search for Locking skins by name and edit it into a command, There defiantly one or two out there.
Reply
#3

I didn't tested this but i'm sure it works fine.

pawn Код:
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.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)