Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:makeadmin(playerid, params[]){
- new id, nivo, string1[128], string2[128], Ime[MAX_PLAYER_NAME];
- if(IsPlayerAdmin(playerid)){
- if(sscanf(params, "ud", id, nivo)) return SCM(playerid, -1, ""NARANDZASTA"KORISTI: "BELA"/makeadmin [id/ime] [nivo]");
- else if(level > HEAD) return SCM(playerid, -1, ""ERRORBOJA"[GRESKA]: Maksimalan admin nivo je 6!");
- else{
- PI[id][pAdmin] = nivo;
- format(string1, sizeof(string1), ""PLAVA"Cestitamo, postavljen vam je admin nivo %d!", nivo);
- SCM(id, -1, string1);
- GetPlayerName(id, Ime, sizeof(Ime));
- format(string2, sizeof(string2), "Postavili ste admina nivo %d igracu %s.", nivo, Ime);
- SCM(playerid, -1, string2);
- }
- }
- else return SCM(playerid, -1, ""ERRORBOJA"[GRESKA]: Nemate autorizaciju za koriscenje ove komande!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement