[Pomoc] /apostavi

Započeo Vaka, Novembar 30, 2013, 15:13:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ja ocu da dam sebi lidera na /apostavi , i kaze oba lider mesta su popunjena a nema niko lidera , pa ako mozete da mi recete dje je problem o.O

Skriptu koju koristim: [cenzura] od 0

else if(strcmp(odabir,"lider",true) == 0)
      {
         if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1337)
         {
             if(kolicina == 1)
             {
                 if(strcmp(GSFInfo[1][gsLider], "Niko", false) && strcmp(GSFInfo[2][gsLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
            }
            else if(kolicina == 2)
             {
                 if(strcmp(FBIInfo[1][fbLider], "Niko", false) && strcmp(FBIInfo[2][fbLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
            }
            else if(kolicina == 3)
             {
                 if(strcmp(LSPDInfo[1][pdLider], "Niko", false) && strcmp(LSPDInfo[2][pdLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
            }
            else if(kolicina == 4)
             {
                 if(strcmp(LSMDInfo[1][mdLider], "Niko", false) && strcmp(LSMDInfo[2][mdLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
            }
            else if(kolicina == 5)
             {
                 if(strcmp(TSCInfo[1][bsLider], "Niko", false) && strcmp(TSCInfo[2][bsLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
            }
            else if(kolicina == 6)
             {
                 if(strcmp(LCNInfo[1][lcLider], "Niko", false) && strcmp(LCNInfo[2][lcLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
            }
            else if(kolicina == 7)
             {
                 if(strcmp(TAXIInfo[1][taLider], "Niko", false) && strcmp(TAXIInfo[2][taLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
            }
            else if(kolicina == 8)
             {
                 if(strcmp(YakuzaInfo[1][yaLider], "Niko", false) && strcmp(YakuzaInfo[2][yaLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
            }
             new str[180];
            if(id == INVALID_PLAYER_ID) return SCM(playerid,BELA, "{FF0000}[Greska!]{BFC0C2} Taj igrac je offline!");
            if(PlayerInfo[playerid][pAdmin] < 1338 && PlayerInfo[id][pAdmin] >= 1338) return SCM(playerid,BELA,"{FF0000}[Greska!]{BFC0C2} Ne mozete to head adminu!");
            if(kolicina == 0)
            {
                if(PlayerInfo[id][pPol] == 1)
                {
               PlayerInfo[id][pSkin] = PocetniSkinM;
               PlayerInfo[id][pRank] = 0;
               SetPlayerSkin(id,PocetniSkinM);
               }
               else if(PlayerInfo[id][pPol] == 2)
               {
               PlayerInfo[id][pSkin] = PocetniSkinZ;
               PlayerInfo[id][pRank] = 0;
               SetPlayerSkin(id,PocetniSkinZ);
               }
            }
            else if(kolicina == 1) { PlayerInfo[id][pSkin] = GSF_LIDER; SetPlayerSkin(id,GSF_LIDER); }
            else if(kolicina == 2) { PlayerInfo[id][pSkin] = FBI_LIDER; SetPlayerSkin(id,FBI_LIDER); }
            else if(kolicina == 3) { PlayerInfo[id][pSkin] = PD_LIDER; SetPlayerSkin(id,PD_LIDER); }
            else if(kolicina == 4) { PlayerInfo[id][pSkin] = MD_LIDER; SetPlayerSkin(id,MD_LIDER); }
            else if(kolicina == 5) { PlayerInfo[id][pSkin] = TSC_LIDER; SetPlayerSkin(id,TSC_LIDER); }
            else if(kolicina == 6) { PlayerInfo[id][pSkin] = LCN_LIDER; SetPlayerSkin(id,LCN_LIDER); }
            else if(kolicina == 7) { PlayerInfo[id][pSkin] = TAXI_LIDER; SetPlayerSkin(id,TAXI_LIDER); }
            else if(kolicina == 8) { PlayerInfo[id][pSkin] = Y_LIDER; SetPlayerSkin(id,Y_LIDER); }
            PlayerInfo[id][pLider] = kolicina;
            PlayerInfo[id][pClan] = kolicina;
             PlayerInfo[id][pRank] = 6;
            PlayerInfo[id][pSpawn] = SPAWN_BAZA;
            if(kolicina == 1)
             {
                 if(strcmp(GSFInfo[1][gsLider], "Niko", false) && strcmp(GSFInfo[2][gsLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
               for(new i = 1; i < 3; i++)
               {
                   if(!strcmp(GSFInfo[gsLider], "Niko", false)) { strmid(GSFInfo[gsLider], ImeIgraca(id), 0, strlen(ImeIgraca(id)), 255); SacuvajOrg(1); break; }
               }
            }
            else if(kolicina == 2)
             {
                 if(strcmp(FBIInfo[1][fbLider], "Niko", false) && strcmp(FBIInfo[2][fbLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
               for(new i = 1; i < 3; i++)
               {
                   if(!strcmp(FBIInfo[fbLider], "Niko", false)) { strmid(FBIInfo[fbLider], ImeIgraca(id), 0, strlen(ImeIgraca(id)), 255); SacuvajOrg(2); break; }
               }
            }
            else if(kolicina == 3)
             {
                 if(strcmp(LSPDInfo[1][pdLider], "Niko", false) && strcmp(LSPDInfo[2][pdLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
               for(new i = 1; i < 3; i++)
               {
                   if(!strcmp(LSPDInfo[pdLider], "Niko", false)) { strmid(LSPDInfo[pdLider], ImeIgraca(id), 0, strlen(ImeIgraca(id)), 255); SacuvajOrg(3); break; }
               }
            }
            else if(kolicina == 4)
             {
                 if(strcmp(LSMDInfo[1][mdLider], "Niko", false) && strcmp(LSMDInfo[2][mdLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
               for(new i = 1; i < 3; i++)
               {
                   if(!strcmp(LSMDInfo[mdLider], "Niko", false)) { strmid(LSMDInfo[mdLider], ImeIgraca(id), 0, strlen(ImeIgraca(id)), 255); SacuvajOrg(4); break; }
               }
            }
            else if(kolicina == 5)
             {
                 if(strcmp(TSCInfo[1][bsLider], "Niko", false) && strcmp(TSCInfo[2][bsLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
               for(new i = 1; i < 3; i++)
               {
                   if(!strcmp(TSCInfo[bsLider], "Niko", false)) { strmid(TSCInfo[bsLider], ImeIgraca(id), 0, strlen(ImeIgraca(id)), 255); SacuvajOrg(5); break; }
               }
            }
            else if(kolicina == 6)
             {
                 if(strcmp(LCNInfo[1][lcLider], "Niko", false) && strcmp(LCNInfo[2][lcLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
               for(new i = 1; i < 3; i++)
               {
                   if(!strcmp(LCNInfo[lcLider], "Niko", false)) { strmid(LCNInfo[lcLider], ImeIgraca(id), 0, strlen(ImeIgraca(id)), 255); SacuvajOrg(6); break; }
               }
            }
            else if(kolicina == 7)
             {
                 if(strcmp(TAXIInfo[1][taLider], "Niko", false) && strcmp(TAXIInfo[2][taLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
               for(new i = 1; i < 3; i++)
               {
                   if(!strcmp(TAXIInfo[taLider], "Niko", false)) { strmid(TAXIInfo[taLider], ImeIgraca(id), 0, strlen(ImeIgraca(id)), 255); SacuvajOrg(7); break; }
               }
            }
            else if(kolicina == 8)
             {
                 if(strcmp(YakuzaInfo[1][yaLider], "Niko", false) && strcmp(YakuzaInfo[2][yaLider], "Niko", false)) return SCM(playerid, BELA, "{FF0000}[Greska!]{BFC0C2} Oba lider mesta su zauzeta!");
               for(new i = 1; i < 3; i++)
               {
                   if(!strcmp(YakuzaInfo[yaLider], "Niko", false)) { strmid(YakuzaInfo[yaLider], ImeIgraca(id), 0, strlen(ImeIgraca(id)), 255); SacuvajOrg(8); break; }
               }
            }
            format(str,sizeof(str),"{00C0FF}* Postavljeni ste za lidera organizacije/bande/mafije {FFFFFF}%s{00C0FF} | Head Admin: {FFFFFF}%s",ImeOrganizacije(kolicina),GetName(playerid));
            SCM(id,BELA,str);
            format(str,sizeof(str),"{00C0FF}Postavili ste {FFFFFF}%s{00C0FF} za lidera organizacije {FFFFFF}%s",GetName(id),ImeOrganizacije(kolicina));
            SCM(playerid,BELA,str);
            format(PosebanString, sizeof(PosebanString), "| LIDER | Igrac: %s | Igracu: %s | Kolicina: %d | IP: %s", ImeIgraca(playerid),ImeIgraca(id),kolicina,GetaIP(playerid));
            SacuvajLog(FAJL_APOSTAVILOG, PosebanString);
            SSACC(id);
         } else return SCM(playerid,BELA,"{FF0000}[Greska!]{BFC0C2} Samo Admini!");
      }
   }
   return 1;
}
Poslednja Izmena: Novembar 30, 2013, 15:13:45 POSLE PODNE od Sha

Daj bolan vise citaj pravila

Jesi opomenut nekoliko puta...
69