SA-MP Forums Archive
_..+=:!!!HELP!!!:=+.._ - 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)
+--- Thread: _..+=:!!!HELP!!!:=+.._ (/showthread.php?tid=473806)



_..+=:!!!HELP!!!:=+.._ - Nadim - 04.11.2013

How to do a background check on nick (for example: if nick Admin then made function, if not then not done?


AW: _..+=:!!!HELP!!!:=+.._ - Skimmer - 04.11.2013

https://sampwiki.blast.hk/wiki/Strcmp

Example

pawn Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));

if(!strcmp(Name, "Admin"))
{
    // Name match
}
else
{
    // Name don't match
}



Re: _..+=:!!!HELP!!!:=+.._ - Jay_ - 04.11.2013

http://forum.sa-mp.com/announcement.php?f=12