16.02.2016, 04:43
Hi I wanted to ask how to make /makeadmin only for rcon so it can only be used if you are logged into the rcon
CMD:makeadmin (playerid,params []) { If(IsPlayerAdmin (playerid)) { //your code } else return 0; return 1; }
CMD:setadmin(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You can't use this command."); // If the player isn't an admin // If the player is admin. All code for that goes here. return 1; }