Jump to content

[REZOLVAT] problema /a /admins gm burned


NoManPv
 Share

Recommended Posts

YCMD:setadmin(playerid, params[], help) {

if(PlayerInfo[playerid][pAdmin] < 0) return SCM(playerid, -1, AdminOnly);

 

new id, level, reason[64];

if(sscanf(params, "uds[64]", id, level, reason)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/setadmin [playerid/name] [level] [reason]");

if(id == INVALID_PLAYER_ID || !IsPlayerConnected(id)) return SCM(playerid, COLOR_GREY, "Jucator neconectat.");

if(level < 0 || level > 7) return SCM(playerid, COLOR_GREY, "Nivel invalid.");

 

SCMf(id, COLOR_LIGHTBLUE, "Ai fost promovat la admin level %d de catre %s, motiv: %s.", level, GetName(playerid), reason);

SCMf(playerid, COLOR_LIGHTBLUE, "L-ai promovat pe %s la admin level %d, motiv: %s.", GetName(id), level, reason);

SendAdminMessage(COLOR_LOGS, "AdmCMD: %s a fost promovat de catre %s la admin level %d, motiv: %s.", 1, GetName(id), GetName(playerid), level, reason);

 

if(level == 0) { SpecFaction[id] = 0; UsedFly[id] = 0; StopFly(id); SpawnPlayer(id); Iter_Remove(Admins, id); }

else { finishAchievement(id, 27); Iter_Add(Admins, id); } 

SetPVarInt(id, "SecurityPlayer", 0);

PlayerInfo[id][pAdmin] = level; UpdateVar(id, "Admin", level);

return 1;

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...