SA-MP Forums Archive
How to make admin 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)
+--- Thread: How to make admin commands (/showthread.php?tid=567868)



How to make admin commands - hardiksingh5 - 17.03.2015

Guys I want to know how to make commands


Re: How to make admin commands - Threshold - 17.03.2015

https://sampwiki.blast.hk/wiki/OnPlayerCommandText
https://sampforum.blast.hk/showthread.php?tid=120356
https://sampforum.blast.hk/showthread.php?tid=91354


AW: How to make admin commands - Kaliber - 17.03.2015

Quote:
Originally Posted by hardiksingh5
Посмотреть сообщение
Guys I want to know how to make commands
...which admins commands?

Actually you just need to check if the player is admin:

Код:
if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,"You are not an admin!"); //that checks the rcon admin
//And then the following functions



Re: How to make admin commands - CalvinC - 17.03.2015

Just cancel if the player isn't an administrator, using return.


Re: How to make admin commands - billy123321 - 17.03.2015

Commands or admin commands? Your title differs from your question.