PHP код:
CMD:teeadminiks(playerid, params[])
{
new playerb, level, string[128];
if(Logged[playerid] == true)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(!sscanf(params, "ui", playerb, level))
{
if(IsPlayerConnected(playerb))
{
if(level >= 0 && level <= 1337)
{
format(string, sizeof(string), "ADMIN: %s tehti Administraatoriks %s poolt [Level: %s]",RPName(playerb),RPName(playerid), ARNKNM(playerb));
SendAdminMessage(COLOR_YELLOW, string);
SendClientMessage(playerb, COLOR_DARKRED, string);
}
else SendClientMessage(playerid, COLOR_GREY, "Admin leveld on 0 - 1337 vahel!");
}
else SendClientMessage(playerid, V_SININE, "Sellist mangijat ei leitud");
}
else SendClientMessage(playerid, COLOR_GREY, "{3BB9FF}KASUTA: {FFFFFF} /teeadminiks [Playerid] [Level]");
}
else SendClientMessage(playerid, COLOR_GRAD1, "Sul pole хigusi, et seda commandi kasutada.");
}
else SendClientMessage(playerid, V_SININE, "Sa ei ole veel sisse loginud");
return 1;
}
Hei, i have this problem when i want make admin it but The higest admin lvl all time? how ican fix it?