Advertisement
2ky

Untitled

2ky
Mar 1st, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. //----------------[/setadmin]---------------
  2. COMMAND:setadmin(playerid, params[])
  3. {
  4. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You are not authorized to use this command.");
  5. new id, lvl;
  6.  
  7. if(sscanf(params, "ui", id, lvl)) return SendClientMessage(playerid, COLOR_RED, "[ADMIN:] /setadmin [PlayerID] [Level]");
  8.  
  9. if(lvl > 5) return SendClientMessage(playerid, COLOR_RED, "[ADMIN:] Administrator level cannot be higher than 6 (Owner)!");
  10.  
  11. accInfo[playerid][Authorization] = lvl;
  12. return 1;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement