[HELP]Only this name can do a command - 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: [HELP]Only this name can do a command (
/showthread.php?tid=178083)
[HELP]Only this name can do a command -
Zack9764 - 20.09.2010
I want to make a command, that only someone with a certain name can do.
It's not a SA-MP script, but it uses pawn still so I don't think it will matter.
Re: [HELP]Only this name can do a command -
Mauzen - 20.09.2010
If it is not sa-mp, you need a function to get the users name. Then compare it to the name of the one who should be allowed to use it via strcmp.