Commands - 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: Commands (
/showthread.php?tid=260961)
Commands -
Jos3y - 11.06.2011
How to make a private command...
Something like I have a server and I want add Neons but just Donators can use it... And the admins have to give them Rights...
Re: Commands -
WarServers - 11.06.2011
All you need is available via ths link:
Click Me
Re: Commands -
HP - 11.06.2011
Seems like a simple use of "if" statement and some variables.
You can simply add "if" in a command and check if player's variable equals ( == ) the value needed to do something. If it does, it will do what you want it to do - if not, simply send an error message using "SendClientMessage" that you are not donator or something like that.
To provide the use of command you have to set the variable. For that you have to set player's variable equal to the value needed to do something.
I sugges you to take a look at some scripts in this forum and use a lot of
SA-MP wiki.