if player username - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: if player username (
/showthread.php?tid=77935)
if player username -
Sal_Kings - 16.05.2009
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"
Re: if player username -
miokie - 16.05.2009
Search for Locking skins by name and edit it into a command, There defiantly one or two out there.
Re: if player username -
Correlli - 16.05.2009
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.
}