Advertisement
Guest User

Untitled

a guest
May 8th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. CMD:makeadmin(playerid, params[]){
  2. new id, nivo, string1[128], string2[128], Ime[MAX_PLAYER_NAME];
  3. if(IsPlayerAdmin(playerid)){
  4. if(sscanf(params, "ud", id, nivo)) return SCM(playerid, -1, ""NARANDZASTA"KORISTI: "BELA"/makeadmin [id/ime] [nivo]");
  5. else if(level > HEAD) return SCM(playerid, -1, ""ERRORBOJA"[GRESKA]: Maksimalan admin nivo je 6!");
  6. else{
  7. PI[id][pAdmin] = nivo;
  8. format(string1, sizeof(string1), ""PLAVA"Cestitamo, postavljen vam je admin nivo %d!", nivo);
  9. SCM(id, -1, string1);
  10. GetPlayerName(id, Ime, sizeof(Ime));
  11. format(string2, sizeof(string2), "Postavili ste admina nivo %d igracu %s.", nivo, Ime);
  12. SCM(playerid, -1, string2);
  13. }
  14. }
  15. else return SCM(playerid, -1, ""ERRORBOJA"[GRESKA]: Nemate autorizaciju za koriscenje ove komande!");
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement