How to make admin commands
#1

Guys I want to know how to make commands
Reply
#2

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

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
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)