code 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: code help (
/showthread.php?tid=552205)
code help -
Rog - 23.12.2014
can anyone give me codes for giving a permission for a tag like [C8].. and if players join wit [C8] tag without getting permission he will get banned..
Re: code help -
OsteeN - 23.12.2014
Have you even tried scripting it yourself? This section is for scripting help, as in if you have problems or alike, you can use this section.
Use GetPlayerName:
https://sampwiki.blast.hk/wiki/GetPlayerName
to get the players name, then check if his name contains [C8] using strfind:
https://sampwiki.blast.hk/wiki/Strfind