Oko zona

Započeo 38amke, April 22, 2023, 15:36:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning): Kako da napravim komandu za kreiranje zona ? .. Probao sam nesto ali ne ide. Hvala unaprijed
Deo skripte: //
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
- Graphic Designer
- Web Developer
- SA:MP Scripter
- TextDraw Maker

Nece ti niko napisati ceo sistem sam. Ako vec ne znas nemoj ni raditi to, nauci osnove pa radi. U redu je pitati kada imas neki bug ili error ali ovde nemas nista..

Citat: Kajsije ^ poslato April 22, 2023, 19:29:57 POSLE PODNE
Nece ti niko napisati ceo sistem sam. Ako vec ne znas nemoj ni raditi to, nauci osnove pa radi. U redu je pitati kada imas neki bug ili error ali ovde nemas nista..
Ok brt, ali kad god probam napravit cmd nece..
- Graphic Designer
- Web Developer
- SA:MP Scripter
- TextDraw Maker

Citat: mikicaca poslato April 22, 2023, 20:36:41 POSLE PODNE
Ok brt, ali kad god probam napravit cmd nece..
Najbolje ti je uzeti iz nekog moda sistem zona i prilagodi sebi

NaUpisivanjeKreirajZonu
{
return true
}

Ima da radi ko sat

Citat: Ivo Dev poslato April 22, 2023, 20:39:03 POSLE PODNE
Najbolje ti je uzeti iz nekog moda sistem zona i prilagodi sebi
a volite vi krasti

Kako hoćeš da ti se kreiraju zone, da staneš na ćoškove zone, ili da ručno uneseš pozicije? Uz to, potrebno je da provideuješ neki code od svojih zona ako misliš da ti neko napiše ili iole pomogne

Poslednja Izmena: April 25, 2023, 02:09:50 PRE PODNE od cofilinko
Aj napuni pun i vozi odavde,
na autoput u najveci krug,
da najbolje razmislim ko mi je drug.

Evo ti izvuceno iz moda nit sam ja radio nit nista
[pawn]CMD:kreirajzonu(playerid, params[])
{
    //#pragma unused help
   if(PlayerInfo[playerid][pAdmin] < 6)
   {
      SendClientMessage(playerid, -1, ""SPLAVA"[GRESKA]: "SIVA"Niste ovlasteni da koristite ovu komandu!");
      return 1;
   }
   new string[128];
   new cosid = 0;
   for(new b = 0; b < sizeof(GZ); b++)
   {
      if(GZ[zonaTeam] > 0)
      {
         cosid = b + 1;
      }
   }
   if(cosid > 500) return SendClientMessage(playerid, -1, ""SPLAVA"[GRESKA]: "SIVA"Ne mozete napraviti vise od 200 zona!");
    new team;
    if(sscanf(params, "i",team))
   {
      SendClientMessage(playerid, -1, "/napravizonu [Team]");
      SendClientMessage(playerid, -1, "Teamovi: 1. The Vinci Family | 2.Black Dragon Triads | 3.Groove Street Family | 4.Ballas");
      SendClientMessage(playerid, -1, "Teamovi: 5. Condor | 6. Hitman | 7. Blue Lagoon | 8. La Cosa Nostra | 9. Da Naga Boys ");
      SendClientMessage(playerid, -1, "Teamovi: 10. Yakuza | 11. Black Cobra Corporation");
      SendClientMessage(playerid, -1, "Teamovi: | 12.DeathRow | 13. The Russia Mafia | 14. Narco Cartel | 15. Loca Cartel | 16. TBB");
      return 1;
   }
   GZ[cosid][zonaTeam] = team;
    format(string,sizeof(string),"Zona ID: %d je napravljena.",cosid);
   SendClientMessage(playerid,-1,string);
   dodajezonu[playerid] = cosid;
   zonalvl[playerid] = 1;
   SacuvajZonu(cosid);
   new str[126];
    format(str,128, ""SPLAVA"#Staff: "SIVA"Administrator %s je napravio zonu pod ID-em: %d", GetName(playerid), cosid);
    ABroadCast(-1,str,1);
    SendClientMessage(playerid, -1, "NAPOMENA: Sada morate definisati regiju,Definisete je sa slovom N.");
    SendClientMessage(playerid, -1, "Kada oznacite jednu tacku idite diagonalno na drugu tacku.");
    SendClientMessage(playerid, -1, "JAKO JE BITNO DA ZONA IDE OD LEVO DIAGONALNO NA DESNO!!!!!!");
   return 1;
}[/pawn]
[pawn]if(newkeys & KEY_NO)
   {
        new Float:Xx, Float:Yy, Float:Zz;
      if(dodajezonu[playerid] > -1)
      {
         if(zonalvl[playerid] == 1)
         {
            zonalvl[playerid] = 2;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][mX69] = Xx;
            GZ[dz][mY69] = Yy;
            SendClientMessage(playerid, -1, "Sada idite diagonalno u drugu tacku!");
            SacuvajZonu(dz);
            return 1;
         }
         if(zonalvl[playerid] == 2)
         {
            zonalvl[playerid] = 3;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][vX69] = Xx;
            GZ[dz][vY69] = Yy;
            ZonaID[dz] = GangZoneCreate(GZ[dz][mX69], GZ[dz][mY69], GZ[dz][vX69], GZ[dz][vY69]);
            SacuvajZonu(dz);
             if(GZ[dz][zonaTeam] == 1)   //<<<<----The Vinci Family
             {
                GangZoneShowForAll(ZonaID[dz], 0xAA3333AA);
             }
             if(GZ[dz][zonaTeam] == 2)    //<<<<----BDT
             {
                GangZoneShowForAll(ZonaID[dz], 0xF5DEB3FF);
             }
             if(GZ[dz][zonaTeam] == 3)    //<<<<----Groove Street Family
             {
                GangZoneShowForAll(ZonaID[dz], 0x06e006DD);
             }
             if(GZ[dz][zonaTeam] == 4)    //<<<<----Ballas
             {
                GangZoneShowForAll(ZonaID[dz], 0x800080FF);
             }
             if(GZ[dz][zonaTeam] == 5)    //<<<<----Condor
             {
                GangZoneShowForAll(ZonaID[dz], 0xFFDD48EE);
             }
             if(GZ[dz][zonaTeam] == 6)    //<<<<----Placenici
             {
                GangZoneShowForAll(ZonaID[dz], 0x729b1aDD);
             }
             if(GZ[dz][zonaTeam] == 7)    //<<<<----Blue Lagoon
             {
                GangZoneShowForAll(ZonaID[dz], 0x0000BBDD);
             }
             if(GZ[dz][zonaTeam] == 8)    //<<<<----La Cosa Nostra
             {
                GangZoneShowForAll(ZonaID[dz], 0x33CCFFAA);
             }
             if(GZ[dz][zonaTeam] == 9)    //<<<<----Da Naga Boys
             {
                GangZoneShowForAll(ZonaID[dz], 0xB8860BAA);
             }
             if(GZ[dz][zonaTeam] == 10)    //<<<<----Yakuza
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF8040EE);
             }
             if(GZ[dz][zonaTeam] == 11)    //<<<<----Black Cobra Corporation
             {
                GangZoneShowForAll(ZonaID[dz], 0x000000EE);
             }
             if(GZ[dz][zonaTeam] == 12)    //<<<<----DeathRow
             {
                GangZoneShowForAll(ZonaID[dz], 0x872424EE);
             }
             if(GZ[dz][zonaTeam] == 13)    //<<<<----The Russia Mafia
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 14)    //<<<<----Narco Cartel
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 15)    //<<<<----Loca Cartel
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 16)    //<<<<----TBB
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
            SendClientMessage(playerid, -1, "Sada oznacite tacku preuzimanja unutar zone!");
            return 1;
         }
         if(zonalvl[playerid] == 3)
         {
            zonalvl[playerid] = 4;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][gPickupx] = Xx;
            GZ[dz][gPickupy] = Yy;
            GZ[dz][gPickupz] = Zz;
            SacuvajZonu(dz);
            new string[256];
            new status[64];
            if(GZ[dz][zonaTeam] == 1) { status = "The Vinci Family"; }
            else if(GZ[dz][zonaTeam] == 2) { status = "Black Dragon Triads"; }
            else if(GZ[dz][zonaTeam] == 3) { status = "Groove Street Family"; }
            else if(GZ[dz][zonaTeam] == 4) { status = "Ballas"; }
            else if(GZ[dz][zonaTeam] == 5) { status = "Condor"; }
            else if(GZ[dz][zonaTeam] == 6) { status = "Placenici"; }
            else if(GZ[dz][zonaTeam] == 7) { status = "Blue Lagoon"; }
            else if(GZ[dz][zonaTeam] == 8) { status = "La Cosa Nostra"; }
            else if(GZ[dz][zonaTeam] == 9) { status = "Da Naga Boys"; }
            else if(GZ[dz][zonaTeam] == 10) { status = "Yakuza"; }
            else if(GZ[dz][zonaTeam] == 11) { status = "Black Cobra Corporation"; }
            else if(GZ[dz][zonaTeam] == 12) { status = "DeathRow"; }
            else if(GZ[dz][zonaTeam] == 13) { status = "The Russia Mafia"; }
            else if(GZ[dz][zonaTeam] == 14) { status = "Narco Cartel"; }
            else if(GZ[dz][zonaTeam] == 15) { status = "Loca Cartel"; }
            else if(GZ[dz][zonaTeam] == 15) { status = "TBB"; }
            format(string,sizeof(string),"{157DEC}[ {FFFFFF}TERITORIJA {157DEC}]\nTeritorija je u vlasnistvu bande {FFFFFF}%s\n{157DEC}Ako zelis da je zauzmes kucaj {FFFFFF}/zauzmi",status);
            ZonaLabel[dz] = CreateDynamic3DTextLabel(string ,0x19B0E3FF,GZ[dz][gPickupx], GZ[dz][gPickupy], GZ[dz][gPickupz],15);
            ZonaPickup[dz] = CreateDynamicPickup(1254, 1, GZ[dz][gPickupx], GZ[dz][gPickupy], GZ[dz][gPickupz]);
            SendClientMessage(playerid, -1,"Zona uspesno napravljena!");
            zonalvl[playerid] = -1;
            SacuvajZonu(dz);
            zonalvl[playerid] = -1;
            dodajezonu[playerid] = -1;
            return 1;
         }
      }
   }[/pawn]

Citat: Fergosonn poslato April 25, 2023, 21:35:31 POSLE PODNE
Evo ti izvuceno iz moda nit sam ja radio nit nista
[pawn]CMD:kreirajzonu(playerid, params[])
{
    //#pragma unused help
   if(PlayerInfo[playerid][pAdmin] < 6)
   {
      SendClientMessage(playerid, -1, ""SPLAVA"[GRESKA]: "SIVA"Niste ovlasteni da koristite ovu komandu!");
      return 1;
   }
   new string[128];
   new cosid = 0;
   for(new b = 0; b < sizeof(GZ); b++)
   {
      if(GZ[zonaTeam] > 0)
      {
         cosid = b + 1;
      }
   }
   if(cosid > 500) return SendClientMessage(playerid, -1, ""SPLAVA"[GRESKA]: "SIVA"Ne mozete napraviti vise od 200 zona!");
    new team;
    if(sscanf(params, "i",team))
   {
      SendClientMessage(playerid, -1, "/napravizonu [Team]");
      SendClientMessage(playerid, -1, "Teamovi: 1. The Vinci Family | 2.Black Dragon Triads | 3.Groove Street Family | 4.Ballas");
      SendClientMessage(playerid, -1, "Teamovi: 5. Condor | 6. Hitman | 7. Blue Lagoon | 8. La Cosa Nostra | 9. Da Naga Boys ");
      SendClientMessage(playerid, -1, "Teamovi: 10. Yakuza | 11. Black Cobra Corporation");
      SendClientMessage(playerid, -1, "Teamovi: | 12.DeathRow | 13. The Russia Mafia | 14. Narco Cartel | 15. Loca Cartel | 16. TBB");
      return 1;
   }
   GZ[cosid][zonaTeam] = team;
    format(string,sizeof(string),"Zona ID: %d je napravljena.",cosid);
   SendClientMessage(playerid,-1,string);
   dodajezonu[playerid] = cosid;
   zonalvl[playerid] = 1;
   SacuvajZonu(cosid);
   new str[126];
    format(str,128, ""SPLAVA"#Staff: "SIVA"Administrator %s je napravio zonu pod ID-em: %d", GetName(playerid), cosid);
    ABroadCast(-1,str,1);
    SendClientMessage(playerid, -1, "NAPOMENA: Sada morate definisati regiju,Definisete je sa slovom N.");
    SendClientMessage(playerid, -1, "Kada oznacite jednu tacku idite diagonalno na drugu tacku.");
    SendClientMessage(playerid, -1, "JAKO JE BITNO DA ZONA IDE OD LEVO DIAGONALNO NA DESNO!!!!!!");
   return 1;
}[/pawn]
[pawn]if(newkeys & KEY_NO)
   {
        new Float:Xx, Float:Yy, Float:Zz;
      if(dodajezonu[playerid] > -1)
      {
         if(zonalvl[playerid] == 1)
         {
            zonalvl[playerid] = 2;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][mX69] = Xx;
            GZ[dz][mY69] = Yy;
            SendClientMessage(playerid, -1, "Sada idite diagonalno u drugu tacku!");
            SacuvajZonu(dz);
            return 1;
         }
         if(zonalvl[playerid] == 2)
         {
            zonalvl[playerid] = 3;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][vX69] = Xx;
            GZ[dz][vY69] = Yy;
            ZonaID[dz] = GangZoneCreate(GZ[dz][mX69], GZ[dz][mY69], GZ[dz][vX69], GZ[dz][vY69]);
            SacuvajZonu(dz);
             if(GZ[dz][zonaTeam] == 1)   //<<<<----The Vinci Family
             {
                GangZoneShowForAll(ZonaID[dz], 0xAA3333AA);
             }
             if(GZ[dz][zonaTeam] == 2)    //<<<<----BDT
             {
                GangZoneShowForAll(ZonaID[dz], 0xF5DEB3FF);
             }
             if(GZ[dz][zonaTeam] == 3)    //<<<<----Groove Street Family
             {
                GangZoneShowForAll(ZonaID[dz], 0x06e006DD);
             }
             if(GZ[dz][zonaTeam] == 4)    //<<<<----Ballas
             {
                GangZoneShowForAll(ZonaID[dz], 0x800080FF);
             }
             if(GZ[dz][zonaTeam] == 5)    //<<<<----Condor
             {
                GangZoneShowForAll(ZonaID[dz], 0xFFDD48EE);
             }
             if(GZ[dz][zonaTeam] == 6)    //<<<<----Placenici
             {
                GangZoneShowForAll(ZonaID[dz], 0x729b1aDD);
             }
             if(GZ[dz][zonaTeam] == 7)    //<<<<----Blue Lagoon
             {
                GangZoneShowForAll(ZonaID[dz], 0x0000BBDD);
             }
             if(GZ[dz][zonaTeam] == 8)    //<<<<----La Cosa Nostra
             {
                GangZoneShowForAll(ZonaID[dz], 0x33CCFFAA);
             }
             if(GZ[dz][zonaTeam] == 9)    //<<<<----Da Naga Boys
             {
                GangZoneShowForAll(ZonaID[dz], 0xB8860BAA);
             }
             if(GZ[dz][zonaTeam] == 10)    //<<<<----Yakuza
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF8040EE);
             }
             if(GZ[dz][zonaTeam] == 11)    //<<<<----Black Cobra Corporation
             {
                GangZoneShowForAll(ZonaID[dz], 0x000000EE);
             }
             if(GZ[dz][zonaTeam] == 12)    //<<<<----DeathRow
             {
                GangZoneShowForAll(ZonaID[dz], 0x872424EE);
             }
             if(GZ[dz][zonaTeam] == 13)    //<<<<----The Russia Mafia
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 14)    //<<<<----Narco Cartel
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 15)    //<<<<----Loca Cartel
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 16)    //<<<<----TBB
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
            SendClientMessage(playerid, -1, "Sada oznacite tacku preuzimanja unutar zone!");
            return 1;
         }
         if(zonalvl[playerid] == 3)
         {
            zonalvl[playerid] = 4;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][gPickupx] = Xx;
            GZ[dz][gPickupy] = Yy;
            GZ[dz][gPickupz] = Zz;
            SacuvajZonu(dz);
            new string[256];
            new status[64];
            if(GZ[dz][zonaTeam] == 1) { status = "The Vinci Family"; }
            else if(GZ[dz][zonaTeam] == 2) { status = "Black Dragon Triads"; }
            else if(GZ[dz][zonaTeam] == 3) { status = "Groove Street Family"; }
            else if(GZ[dz][zonaTeam] == 4) { status = "Ballas"; }
            else if(GZ[dz][zonaTeam] == 5) { status = "Condor"; }
            else if(GZ[dz][zonaTeam] == 6) { status = "Placenici"; }
            else if(GZ[dz][zonaTeam] == 7) { status = "Blue Lagoon"; }
            else if(GZ[dz][zonaTeam] == 8) { status = "La Cosa Nostra"; }
            else if(GZ[dz][zonaTeam] == 9) { status = "Da Naga Boys"; }
            else if(GZ[dz][zonaTeam] == 10) { status = "Yakuza"; }
            else if(GZ[dz][zonaTeam] == 11) { status = "Black Cobra Corporation"; }
            else if(GZ[dz][zonaTeam] == 12) { status = "DeathRow"; }
            else if(GZ[dz][zonaTeam] == 13) { status = "The Russia Mafia"; }
            else if(GZ[dz][zonaTeam] == 14) { status = "Narco Cartel"; }
            else if(GZ[dz][zonaTeam] == 15) { status = "Loca Cartel"; }
            else if(GZ[dz][zonaTeam] == 15) { status = "TBB"; }
            format(string,sizeof(string),"{157DEC}[ {FFFFFF}TERITORIJA {157DEC}]\nTeritorija je u vlasnistvu bande {FFFFFF}%s\n{157DEC}Ako zelis da je zauzmes kucaj {FFFFFF}/zauzmi",status);
            ZonaLabel[dz] = CreateDynamic3DTextLabel(string ,0x19B0E3FF,GZ[dz][gPickupx], GZ[dz][gPickupy], GZ[dz][gPickupz],15);
            ZonaPickup[dz] = CreateDynamicPickup(1254, 1, GZ[dz][gPickupx], GZ[dz][gPickupy], GZ[dz][gPickupz]);
            SendClientMessage(playerid, -1,"Zona uspesno napravljena!");
            zonalvl[playerid] = -1;
            SacuvajZonu(dz);
            zonalvl[playerid] = -1;
            dodajezonu[playerid] = -1;
            return 1;
         }
      }
   }[/pawn]
nije valjda iz nk moda  :o

Citat: Fergosonn poslato April 25, 2023, 21:35:31 POSLE PODNE
Evo ti izvuceno iz moda nit sam ja radio nit nista
[pawn]CMD:kreirajzonu(playerid, params[])
{
    //#pragma unused help
   if(PlayerInfo[playerid][pAdmin] < 6)
   {
      SendClientMessage(playerid, -1, ""SPLAVA"[GRESKA]: "SIVA"Niste ovlasteni da koristite ovu komandu!");
      return 1;
   }
   new string[128];
   new cosid = 0;
   for(new b = 0; b < sizeof(GZ); b++)
   {
      if(GZ[zonaTeam] > 0)
      {
         cosid = b + 1;
      }
   }
   if(cosid > 500) return SendClientMessage(playerid, -1, ""SPLAVA"[GRESKA]: "SIVA"Ne mozete napraviti vise od 200 zona!");
    new team;
    if(sscanf(params, "i",team))
   {
      SendClientMessage(playerid, -1, "/napravizonu [Team]");
      SendClientMessage(playerid, -1, "Teamovi: 1. The Vinci Family | 2.Black Dragon Triads | 3.Groove Street Family | 4.Ballas");
      SendClientMessage(playerid, -1, "Teamovi: 5. Condor | 6. Hitman | 7. Blue Lagoon | 8. La Cosa Nostra | 9. Da Naga Boys ");
      SendClientMessage(playerid, -1, "Teamovi: 10. Yakuza | 11. Black Cobra Corporation");
      SendClientMessage(playerid, -1, "Teamovi: | 12.DeathRow | 13. The Russia Mafia | 14. Narco Cartel | 15. Loca Cartel | 16. TBB");
      return 1;
   }
   GZ[cosid][zonaTeam] = team;
    format(string,sizeof(string),"Zona ID: %d je napravljena.",cosid);
   SendClientMessage(playerid,-1,string);
   dodajezonu[playerid] = cosid;
   zonalvl[playerid] = 1;
   SacuvajZonu(cosid);
   new str[126];
    format(str,128, ""SPLAVA"#Staff: "SIVA"Administrator %s je napravio zonu pod ID-em: %d", GetName(playerid), cosid);
    ABroadCast(-1,str,1);
    SendClientMessage(playerid, -1, "NAPOMENA: Sada morate definisati regiju,Definisete je sa slovom N.");
    SendClientMessage(playerid, -1, "Kada oznacite jednu tacku idite diagonalno na drugu tacku.");
    SendClientMessage(playerid, -1, "JAKO JE BITNO DA ZONA IDE OD LEVO DIAGONALNO NA DESNO!!!!!!");
   return 1;
}[/pawn]
[pawn]if(newkeys & KEY_NO)
   {
        new Float:Xx, Float:Yy, Float:Zz;
      if(dodajezonu[playerid] > -1)
      {
         if(zonalvl[playerid] == 1)
         {
            zonalvl[playerid] = 2;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][mX69] = Xx;
            GZ[dz][mY69] = Yy;
            SendClientMessage(playerid, -1, "Sada idite diagonalno u drugu tacku!");
            SacuvajZonu(dz);
            return 1;
         }
         if(zonalvl[playerid] == 2)
         {
            zonalvl[playerid] = 3;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][vX69] = Xx;
            GZ[dz][vY69] = Yy;
            ZonaID[dz] = GangZoneCreate(GZ[dz][mX69], GZ[dz][mY69], GZ[dz][vX69], GZ[dz][vY69]);
            SacuvajZonu(dz);
             if(GZ[dz][zonaTeam] == 1)   //<<<<----The Vinci Family
             {
                GangZoneShowForAll(ZonaID[dz], 0xAA3333AA);
             }
             if(GZ[dz][zonaTeam] == 2)    //<<<<----BDT
             {
                GangZoneShowForAll(ZonaID[dz], 0xF5DEB3FF);
             }
             if(GZ[dz][zonaTeam] == 3)    //<<<<----Groove Street Family
             {
                GangZoneShowForAll(ZonaID[dz], 0x06e006DD);
             }
             if(GZ[dz][zonaTeam] == 4)    //<<<<----Ballas
             {
                GangZoneShowForAll(ZonaID[dz], 0x800080FF);
             }
             if(GZ[dz][zonaTeam] == 5)    //<<<<----Condor
             {
                GangZoneShowForAll(ZonaID[dz], 0xFFDD48EE);
             }
             if(GZ[dz][zonaTeam] == 6)    //<<<<----Placenici
             {
                GangZoneShowForAll(ZonaID[dz], 0x729b1aDD);
             }
             if(GZ[dz][zonaTeam] == 7)    //<<<<----Blue Lagoon
             {
                GangZoneShowForAll(ZonaID[dz], 0x0000BBDD);
             }
             if(GZ[dz][zonaTeam] == 8)    //<<<<----La Cosa Nostra
             {
                GangZoneShowForAll(ZonaID[dz], 0x33CCFFAA);
             }
             if(GZ[dz][zonaTeam] == 9)    //<<<<----Da Naga Boys
             {
                GangZoneShowForAll(ZonaID[dz], 0xB8860BAA);
             }
             if(GZ[dz][zonaTeam] == 10)    //<<<<----Yakuza
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF8040EE);
             }
             if(GZ[dz][zonaTeam] == 11)    //<<<<----Black Cobra Corporation
             {
                GangZoneShowForAll(ZonaID[dz], 0x000000EE);
             }
             if(GZ[dz][zonaTeam] == 12)    //<<<<----DeathRow
             {
                GangZoneShowForAll(ZonaID[dz], 0x872424EE);
             }
             if(GZ[dz][zonaTeam] == 13)    //<<<<----The Russia Mafia
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 14)    //<<<<----Narco Cartel
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 15)    //<<<<----Loca Cartel
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
             if(GZ[dz][zonaTeam] == 16)    //<<<<----TBB
             {
                GangZoneShowForAll(ZonaID[dz], 0xFF9AFFEE);
             }
            SendClientMessage(playerid, -1, "Sada oznacite tacku preuzimanja unutar zone!");
            return 1;
         }
         if(zonalvl[playerid] == 3)
         {
            zonalvl[playerid] = 4;
            new dz = dodajezonu[playerid];
            GetPlayerPos(playerid, Xx,Yy,Zz);
            GZ[dz][gPickupx] = Xx;
            GZ[dz][gPickupy] = Yy;
            GZ[dz][gPickupz] = Zz;
            SacuvajZonu(dz);
            new string[256];
            new status[64];
            if(GZ[dz][zonaTeam] == 1) { status = "The Vinci Family"; }
            else if(GZ[dz][zonaTeam] == 2) { status = "Black Dragon Triads"; }
            else if(GZ[dz][zonaTeam] == 3) { status = "Groove Street Family"; }
            else if(GZ[dz][zonaTeam] == 4) { status = "Ballas"; }
            else if(GZ[dz][zonaTeam] == 5) { status = "Condor"; }
            else if(GZ[dz][zonaTeam] == 6) { status = "Placenici"; }
            else if(GZ[dz][zonaTeam] == 7) { status = "Blue Lagoon"; }
            else if(GZ[dz][zonaTeam] == 8) { status = "La Cosa Nostra"; }
            else if(GZ[dz][zonaTeam] == 9) { status = "Da Naga Boys"; }
            else if(GZ[dz][zonaTeam] == 10) { status = "Yakuza"; }
            else if(GZ[dz][zonaTeam] == 11) { status = "Black Cobra Corporation"; }
            else if(GZ[dz][zonaTeam] == 12) { status = "DeathRow"; }
            else if(GZ[dz][zonaTeam] == 13) { status = "The Russia Mafia"; }
            else if(GZ[dz][zonaTeam] == 14) { status = "Narco Cartel"; }
            else if(GZ[dz][zonaTeam] == 15) { status = "Loca Cartel"; }
            else if(GZ[dz][zonaTeam] == 15) { status = "TBB"; }
            format(string,sizeof(string),"{157DEC}[ {FFFFFF}TERITORIJA {157DEC}]\nTeritorija je u vlasnistvu bande {FFFFFF}%s\n{157DEC}Ako zelis da je zauzmes kucaj {FFFFFF}/zauzmi",status);
            ZonaLabel[dz] = CreateDynamic3DTextLabel(string ,0x19B0E3FF,GZ[dz][gPickupx], GZ[dz][gPickupy], GZ[dz][gPickupz],15);
            ZonaPickup[dz] = CreateDynamicPickup(1254, 1, GZ[dz][gPickupx], GZ[dz][gPickupy], GZ[dz][gPickupz]);
            SendClientMessage(playerid, -1,"Zona uspesno napravljena!");
            zonalvl[playerid] = -1;
            SacuvajZonu(dz);
            zonalvl[playerid] = -1;
            dodajezonu[playerid] = -1;
            return 1;
         }
      }
   }[/pawn]
Ovim ces decku napraviti samo takve warninge i errore..
[pawn]
GZ[zonaTeam]
SacuvajZonu
zonalvl...
[/pawn]
i tako dalje..
Aj napuni pun i vozi odavde,
na autoput u najveci krug,
da najbolje razmislim ko mi je drug.

Citat: cofilinko poslato April 25, 2023, 21:53:58 POSLE PODNE
Ovim ces decku napraviti samo takve warninge i errore..
[pawn]
GZ[zonaTeam]
SacuvajZonu
zonalvl...
[/pawn]
i tako dalje..
vjerovatno jer je to skorpija radio

Citat: // Keno poslato April 25, 2023, 21:59:08 POSLE PODNE
vjerovatno jer je to skorpija radio
Kaze brat "izvuceno iz moda"... Izvucena komanda i koriscenje iste..
Aj napuni pun i vozi odavde,
na autoput u najveci krug,
da najbolje razmislim ko mi je drug.