[pomoc]/admini komanda

Započeo BloOm3R!, Mart 20, 2011, 18:31:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GF
Detaljan opis problema:tu imam problemcic jedan kad kucam /administratori a ja sam admin kaze dobro al dok dam drugom igracu onda admina nekaze njega nego samo mene dalje zasto je to tako evo komande
Citatif (strcmp(cmd, "/administratori", true) == 0)
   {
      for(new i = 0; i < MAX_PLAYERS; i++)
      {
      if(PlayerInfo[pAdmin] >= 1)
             {
              if(AdminDuty == 1)
            {
               GetPlayerName(i, sendername, sizeof(sendername));
               format(string, 256, "\n"PZ"Administrator: %s [%d] | Na duznosti\n\n"ZUTA"Cijeli popis administratora i ostale informacije mozete vidjeti na\nnasem forumu koji se nalazi na url:"BIJELA"www.croatian-mafia.info", sendername, PlayerInfo[pAdmin]);
            }
            else
            {
               GetPlayerName(i, sendername, sizeof(sendername));
               format(string, 256, "\n"PZ"Administrator: %s [%d] | Nema duznosti\n\n"ZUTA"Cijeli popis administratora i ostale informacije mozete vidjeti na\nnasem forumu koji se nalazi na url:"BIJELA"www.croatian-mafia.info", sendername, PlayerInfo[pAdmin]);
            }
            ShowPlayerDialog(playerid,ADMINISTRATORI,DIALOG_STYLE_MSGBOX,""PLAVA"Croatian Mafia RolePlay Admin Team", string, "Uredu", "" );
         }
      }
      return 1;
   }
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

if (strcmp(cmd, "/administratori", true) == 0)
   {
        if(IsPlayerConnected(playerid))
       {
           SendClientMessage(playerid, COLOR_GRAD2, "|____  Administratori ____|");
         for(new i = 0; i < MAX_PLAYERS; i++)
         {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] <= 1338 )
                {
                    new admtext[64];
                    if(PlayerInfo[pAppearList] == 1)
                    {
                            if(PlayerInfo[pAdmin] == 1340) { admtext = "Vlasnik"; }
                      else if(PlayerInfo[pAdmin] == 1338) { admtext = "1338"; }
                     else if(PlayerInfo[pAdmin] == 1337) { admtext = "1337"; }
                     else if(PlayerInfo[pAdmin] == 6)   { admtext = "Developer"; }
                     else if(PlayerInfo[pAdmin] == 5) { admtext = "Head Administrator"; }
                     else if(PlayerInfo[pAdmin] == 4) { admtext = "Lead Administrator"; }
                     else if(PlayerInfo[pAdmin] == 3) { admtext = "Administrator"; }
                     else if(PlayerInfo[pAdmin] == 2)   { admtext = "Globalni Moderator"; }
                     else if(PlayerInfo[pAdmin] == 1) { admtext = "Moderator"; }
                     else { admtext = "Unkown"; }
                  }
                  }
                  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 dužnosti)", admtext, sendername);
                     SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
                  }
               }
            }
         }
      }
      return 1;
   }
Evo ako mislis na to ??

e al ja mislim u dialogu zasto mi nevalja znam i ja ovako sa tekstom radi al zasto ne ovako.