[Pomoc]Lista Administratora

Započeo Nxidza, April 29, 2011, 14:57:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

//Moze lock

Resio sam
Poslednja Izmena: April 29, 2011, 15:06:30 POSLE PODNE od #include <Nxidza>

Low sam u ovome  :D ali pokuÅ¡aj ovako

if(strcmp(cmd,"/admini",true)==0 || strcmp(cmd,"/admins",true)==0)
{
       if(IsPlayerConnected(playerid))
   {
       SendClientMessage(playerid, COLOR_RED, " ");
       SendClientMessage(playerid, COLOR_RED, "-|___________________________________________________|-");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
   if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1341)
   {
   if(HideAdmin[i] == 0)
{
       new admtext[64];
        if(PlayerInfo[i][pAdmin] == 1340) { admtext = "Vlasnik"; }
        else if(PlayerInfo[i][pAdmin] == 1339) { admtext = "Direktor"; }
       else if(PlayerInfo[i][pAdmin] == 1338) { admtext = "Skripter"; }
       else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "Glavni Admin"; }
       else if(PlayerInfo[i][pAdmin] == 4) { admtext = "4"; }//{3FCD02}Admin|{F300FF}Nivo:4
else if(PlayerInfo[i][pAdmin] == 3) { admtext = "3"; }//{3FCD02}Admin|{F300FF}Nivo:3
else if(PlayerInfo[i][pAdmin] == 2) { admtext = "2"; }//{3FCD02}Admin|{F300FF}Nivo:2
else if(PlayerInfo[i][pAdmin] == 1) { admtext = "1"; }//{3FCD02}Admin|{F300FF}Nivo:1
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, 256, "{FF3131}Admin {FF9999}|%s| {FF3131}Level: |%s| ", sendername, admtext);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
   format(string, 256, "{3FCD02}Admin|%s|{F300FF}Level: |%s| (Na duznosti)", sendername, admtext);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
}
SendClientMessage(playerid, COLOR_RED, "-|___________________________________________________|-");
}
}
}
return 1;
}
Poslednja Izmena: April 29, 2011, 15:03:50 POSLE PODNE od Darko