[HELP]Admin Commands
#1

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)