[pomoc] admini

Započeo sampzone, April 20, 2011, 22:53:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

mod koji ja koristim: ravens edit

problem: Problem je kada ja kucam /admini trebalo bi da ispise online admine a pise samo online admini  a ispod nema ni jednog imena....nadam se da znate pomoci

dio coda:

if (strcmp(cmd, "/admini", true) == 0)
   {
        if(IsPlayerConnected(playerid))
       {
           SendClientMessage(playerid, COLOR_GREEN, "|____ Samp-Zone RolePlay Online Admin Tim ____|");
         for(new i = 0; i < MAX_PLAYERS; i++)
         {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] <= 1338 || PlayerInfo[pGameMaster] >= 1)
                {
                    new admtext[64];
                    if(PlayerInfo[pAppearList] == 1)
                    {
                        if(PlayerInfo[pAdmin] == 1338) { admtext = "Admin 1338"; }
                     else if(PlayerInfo[pAdmin] == 1337) { admtext = "Admin 1337"; }
                     else if(PlayerInfo[pAdmin] == 6)   { admtext = "Admin LvL 6"; }
                     else if(PlayerInfo[pAdmin] == 5) { admtext = "Admin LvL 5"; }
                     else if(PlayerInfo[pAdmin] == 4) { admtext = "Admin LvL 4"; }
                     else if(PlayerInfo[pAdmin] == 3) { admtext = "Admin LvL 3"; }
                     else if(PlayerInfo[pAdmin] == 2)   { admtext = "Admin LvL 2"; }
                     else if(PlayerInfo[pAdmin] == 1) { admtext = "Admin LvL 1"; }
                     else if(PlayerInfo[pGameMaster] == 3) { admtext = "Lead GameMaster"; }
                     else if(PlayerInfo[pGameMaster] == 2) { admtext = "GameMaster LvL 2"; }
                     else if(PlayerInfo[pGameMaster] == 1) { admtext = "GameMaster LvL 1"; }
                     else { admtext = "Unknown Rank"; }
                  }
                  GetPlayerName(i, sendername, sizeof(sendername));
                  if(PlayerInfo[pAdminDuty] == 0 && PlayerInfo[pAppearList] == 1)
                  {
                     format(string, sizeof(string), "%s - %s", admtext, sendername);
                     SendClientMessage(playerid, COLOR_WHITE, string);
                  }
                  else if(PlayerInfo[pAdminDuty] == 1 && PlayerInfo[pAppearList] == 1)
                  {
                      format(string, sizeof(string), "%s - %s (na Duznosti)", admtext, sendername);
                     SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
                  }

nadam se da sam dao dobar code

Hvala za pomoc unaprijed

Komanda je dobra koliko vidim nekuzim sta ti nece.

sad sam skuzio zasto nece...ja sam admin 1340lvl a ovdje nema taj lvl sacu napraviti da pise.....mozete lock temu