[HELP]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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Admin Commands (
/showthread.php?tid=120987)
[HELP]Admin Commands -
hvampire - 14.01.2010
i made a command : /acmdslvl(1,2,3,4 or 5) , everyone even none-admins can use this command , how can i make those commands for admins only and /acmdslvl1 for lvl 1 , /acmdslvl2 for lvl 2 , etc... please help
Re: [HELP]Admin Commands -
TheChaoz - 14.01.2010
u can use a if that check if the player has X level
ex:
pawn Код:
if(AdminLevel[playerid] == 3){
//the comand
}esle return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You have to be an admin level 3 to use this comand");
i hope it helps u