Teritorije

Započeo .варнинг, Decembar 06, 2017, 19:08:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Citat: Slade poslato Decembar 07, 2017, 12:21:15 POSLE PODNE
Pokušaj ovako, sad ne znam šta znače stvari u tvom enumu, vrlo su loše objašnjene, ali mislim da će ovo funkcionirati:
[pawn]stock IsPlayerInGZone(playerid, zoneid) {
   new Float:x, Float:y, Float:z;
   GetPlayerPos(playerid, x, y, z);
   return (x > GZ[zoneid][mX69] && x < GZ[zoneid][vX69] && y > GZ[zoneid][mY69] && y < GZ[zoneid][vY69]);
}[/pawn]
[pawn]YCMD:zauzmi(playerid, params[], help)
{
   #pragma unused help
   new sat, minut, sekund;
   gettime(sat, minut, sekund);
   if(sat >= 3 && sat <= 7) return SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati teritorije izmedju 7-3h!");
   new gunID = GetPlayerWeapon(playerid);
   new gunAmmo = GetPlayerAmmo(playerid);
   if(gunID != 0 && gunAmmo != 0)
   {
   }
   else return SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Morate drzati oruzje u ruci kako biste zapoceli osvajanje teritorije!");
   if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pClan] == 7) return SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Vi ste clan drzavne organizacije, vi morate da vodite red oko igraca!");
   if(PlayerInfo[playerid][pClan] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pClan] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pClan] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pClan] == 0 || PlayerInfo[playerid][pLider] == 0 ||
   PlayerInfo[playerid][pClan] == 14 || PlayerInfo[playerid][pLider] == 14) return SCM(playerid,SVETLOPLAVA,"Niste clan bande/mafije.");
   for(new id = 0; id < sizeof(GZ); id++)
   {
      if(IsPlayerInGZone(playerid, id))
      {
         new string[126];
         new clan = PlayerInfo[playerid][pClan];
         new lider = PlayerInfo[playerid][pLider];
         if(GZ[playerid][zonaTeam] == 1)
         {
         if(clan == 2 || lider == 2) //----The Vinci Family
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 2)
      {
         if(clan == 3 || lider == 3) //----Black Dragon Triads
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 3)
      {
         if(clan == 4 || lider == 4) //----Groove Street Family
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 4)
      {
         if(clan == 5 || lider == 5) //----Ballas
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 5)
      {
         if(clan == 9 || lider == 9) //----TEC
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 6)
      {
         if(clan == 11 || lider == 11) //----Blue Lagoon
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 7)
      {
         if(clan == 13 || lider == 13) //----Da Naga Boys
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 8)
      {
         if(clan == 17 || lider == 17) //----Black Cobra Corporation
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 9)
      {
         if(clan == 19 || lider == 19) //----DeathRow
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 10)
      {
         if(clan == 20 || lider == 20) //----Russian Mafia
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 11)
      {
         if(clan == 18 || lider == 18) //----LCN
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      GZ[playerid][gPreuzeto] = 120;
      zonaid[playerid] = id;
      zonatime[playerid] = 300; //10min
      zonas[playerid] = 120;
      zonatimer[playerid] = SetTimerEx("ZonaZauzmi", 500, true, "i", playerid);
      SCM(playerid,-1,""SPLAVA"ZAPOCEO SI ZAUZIMANJE TERITORIJE. "BELA"Moras ostati ziv sljedecih 5 minuta kako bi je osvojio.");
      SCM(playerid,-1,""SPLAVA"[NAPOMENA]: "BELA"Ne smes se previse udaljiti od mjesta zauzimanja, jer ce zauzimanje biti prekinuto.");
      ///////////////////////FLASHING/////////////////////
      if(clan == 2 || lider == 2)         //<<<<----The Vinci Family
      {
         GangZoneFlashForAll(ZonaID[playerid],0xAA3333AA);
      }
      if(clan == 3 || lider == 3)         //<<<<----Black Dragon Triads
      {
         GangZoneFlashForAll(ZonaID[playerid],0xC2A2DAAA);
      }
      if(clan == 4 || lider == 4)         //<<<<<-----Groove Street Family
      {
         GangZoneFlashForAll(ZonaID[playerid],0x00e60099);
      }
      if(clan == 5 || lider == 5)         //<<<<<----Ballas
      {
         GangZoneFlashForAll(ZonaID[playerid],0xD1345B99);
      }
      if(clan == 9 || lider == 9)         //<<<<<---Condot
      {
         GangZoneFlashForAll(ZonaID[playerid],0xc8c37f);
      }
      if(clan == 11 || lider == 11)         //<<<<<----Blue Lagoon
      {
         GangZoneFlashForAll(ZonaID[playerid],0x2641FEAA);
      }
      if(clan == 13 || lider == 13)         //<<<<<----Da Naga Boys
      {
         GangZoneFlashForAll(ZonaID[playerid],0xDABB3EAA);
      }
      if(clan == 17 || lider == 17)         //<<<<<----Black Cobra Corporation
      {
         GangZoneFlashForAll(ZonaID[playerid],0xFFFFFFAA);
      }
      if(clan == 19 || lider == 19)         //<<<<<----DeathRow
      {
         GangZoneFlashForAll(ZonaID[playerid],0xAFAFAFAA);
      }
      if(clan == 20 || lider == 20)         //<<<<<----LCN
      {
         GangZoneFlashForAll(ZonaID[playerid],0x00D2E1FF);
      }
      if(clan == 18 || lider == 18)         //<<<<<----LCN
      {
         GangZoneFlashForAll(ZonaID[playerid],0xFFAA00FF);
      }
      ////////////////////////////////////////////////////////////////////////
      if(PlayerInfo[playerid][pClan] > 0)
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Clan vase organizacije pokusava da zauzme tudju teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(PlayerInfo[playerid][pClan],-1,string);
      }
      else
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Clan vase organizacije pokusava da zauzme tudju teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(PlayerInfo[playerid][pLider],-1,string);
      }

      if(GZ[playerid][zonaTeam] == 1)   //---The Vinci Family
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(2,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 2)   //---Black Dragon Triads
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(3,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 3)   //---Groove Street Family
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(4,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 4)   //---Bsllas
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(5,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 5)   //---TEC
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(9,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 6)   //---Blue Lagoon
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(11,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 7)   //---Da Naga Boys
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(13,-1,string);
      }
        if(GZ[playerid][zonaTeam] == 8)   //---Black Cobra Corporation
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(17,-1,string);
      }
        if(GZ[playerid][zonaTeam] == 9)   //---DeathRow
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(19,-1,string);
      }
        if(GZ[playerid][zonaTeam] == 10)   //---Russian Mafia
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(20,-1,string);
      }
        if(GZ[playerid][zonaTeam] == 11)   //---LCN
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(20,-1,string);
      }
      //----------------------------------------------------------------------
      return 1;
   }
   }
   return SCM(playerid, -1, "("BELA"Greska "BELA"Ne nalazite se u blizini tocke za preuzimanje zone!");
}[/pawn]
Hvala pokusaju kada dodjem na komp
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

Citat: Slade poslato Decembar 07, 2017, 12:21:15 POSLE PODNE
Pokušaj ovako, sad ne znam šta znače stvari u tvom enumu, vrlo su loše objašnjene, ali mislim da će ovo funkcionirati:
[pawn]stock IsPlayerInGZone(playerid, zoneid) {
   new Float:x, Float:y, Float:z;
   GetPlayerPos(playerid, x, y, z);
   return (x > GZ[zoneid][mX69] && x < GZ[zoneid][vX69] && y > GZ[zoneid][mY69] && y < GZ[zoneid][vY69]);
}[/pawn]
[pawn]YCMD:zauzmi(playerid, params[], help)
{
   #pragma unused help
   new sat, minut, sekund;
   gettime(sat, minut, sekund);
   if(sat >= 3 && sat <= 7) return SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati teritorije izmedju 7-3h!");
   new gunID = GetPlayerWeapon(playerid);
   new gunAmmo = GetPlayerAmmo(playerid);
   if(gunID != 0 && gunAmmo != 0)
   {
   }
   else return SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Morate drzati oruzje u ruci kako biste zapoceli osvajanje teritorije!");
   if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pClan] == 7) return SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Vi ste clan drzavne organizacije, vi morate da vodite red oko igraca!");
   if(PlayerInfo[playerid][pClan] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pClan] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pClan] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pClan] == 0 || PlayerInfo[playerid][pLider] == 0 ||
   PlayerInfo[playerid][pClan] == 14 || PlayerInfo[playerid][pLider] == 14) return SCM(playerid,SVETLOPLAVA,"Niste clan bande/mafije.");
   for(new id = 0; id < sizeof(GZ); id++)
   {
      if(IsPlayerInGZone(playerid, id))
      {
         new string[126];
         new clan = PlayerInfo[playerid][pClan];
         new lider = PlayerInfo[playerid][pLider];
         if(GZ[playerid][zonaTeam] == 1)
         {
         if(clan == 2 || lider == 2) //----The Vinci Family
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 2)
      {
         if(clan == 3 || lider == 3) //----Black Dragon Triads
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 3)
      {
         if(clan == 4 || lider == 4) //----Groove Street Family
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 4)
      {
         if(clan == 5 || lider == 5) //----Ballas
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 5)
      {
         if(clan == 9 || lider == 9) //----TEC
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 6)
      {
         if(clan == 11 || lider == 11) //----Blue Lagoon
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 7)
      {
         if(clan == 13 || lider == 13) //----Da Naga Boys
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 8)
      {
         if(clan == 17 || lider == 17) //----Black Cobra Corporation
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 9)
      {
         if(clan == 19 || lider == 19) //----DeathRow
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 10)
      {
         if(clan == 20 || lider == 20) //----Russian Mafia
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      if(GZ[playerid][zonaTeam] == 11)
      {
         if(clan == 18 || lider == 18) //----LCN
         {
         SCM(playerid, -1, ""SPLAVA"* Greska "BELA"Ne mozete zauzimati svoju teritoriju!");
         return 1;
         }
      }
      GZ[playerid][gPreuzeto] = 120;
      zonaid[playerid] = id;
      zonatime[playerid] = 300; //10min
      zonas[playerid] = 120;
      zonatimer[playerid] = SetTimerEx("ZonaZauzmi", 500, true, "i", playerid);
      SCM(playerid,-1,""SPLAVA"ZAPOCEO SI ZAUZIMANJE TERITORIJE. "BELA"Moras ostati ziv sljedecih 5 minuta kako bi je osvojio.");
      SCM(playerid,-1,""SPLAVA"[NAPOMENA]: "BELA"Ne smes se previse udaljiti od mjesta zauzimanja, jer ce zauzimanje biti prekinuto.");
      ///////////////////////FLASHING/////////////////////
      if(clan == 2 || lider == 2)         //<<<<----The Vinci Family
      {
         GangZoneFlashForAll(ZonaID[playerid],0xAA3333AA);
      }
      if(clan == 3 || lider == 3)         //<<<<----Black Dragon Triads
      {
         GangZoneFlashForAll(ZonaID[playerid],0xC2A2DAAA);
      }
      if(clan == 4 || lider == 4)         //<<<<<-----Groove Street Family
      {
         GangZoneFlashForAll(ZonaID[playerid],0x00e60099);
      }
      if(clan == 5 || lider == 5)         //<<<<<----Ballas
      {
         GangZoneFlashForAll(ZonaID[playerid],0xD1345B99);
      }
      if(clan == 9 || lider == 9)         //<<<<<---Condot
      {
         GangZoneFlashForAll(ZonaID[playerid],0xc8c37f);
      }
      if(clan == 11 || lider == 11)         //<<<<<----Blue Lagoon
      {
         GangZoneFlashForAll(ZonaID[playerid],0x2641FEAA);
      }
      if(clan == 13 || lider == 13)         //<<<<<----Da Naga Boys
      {
         GangZoneFlashForAll(ZonaID[playerid],0xDABB3EAA);
      }
      if(clan == 17 || lider == 17)         //<<<<<----Black Cobra Corporation
      {
         GangZoneFlashForAll(ZonaID[playerid],0xFFFFFFAA);
      }
      if(clan == 19 || lider == 19)         //<<<<<----DeathRow
      {
         GangZoneFlashForAll(ZonaID[playerid],0xAFAFAFAA);
      }
      if(clan == 20 || lider == 20)         //<<<<<----LCN
      {
         GangZoneFlashForAll(ZonaID[playerid],0x00D2E1FF);
      }
      if(clan == 18 || lider == 18)         //<<<<<----LCN
      {
         GangZoneFlashForAll(ZonaID[playerid],0xFFAA00FF);
      }
      ////////////////////////////////////////////////////////////////////////
      if(PlayerInfo[playerid][pClan] > 0)
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Clan vase organizacije pokusava da zauzme tudju teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(PlayerInfo[playerid][pClan],-1,string);
      }
      else
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Clan vase organizacije pokusava da zauzme tudju teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(PlayerInfo[playerid][pLider],-1,string);
      }

      if(GZ[playerid][zonaTeam] == 1)   //---The Vinci Family
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(2,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 2)   //---Black Dragon Triads
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(3,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 3)   //---Groove Street Family
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(4,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 4)   //---Bsllas
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(5,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 5)   //---TEC
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(9,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 6)   //---Blue Lagoon
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(11,-1,string);
      }
      if(GZ[playerid][zonaTeam] == 7)   //---Da Naga Boys
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(13,-1,string);
      }
        if(GZ[playerid][zonaTeam] == 8)   //---Black Cobra Corporation
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(17,-1,string);
      }
        if(GZ[playerid][zonaTeam] == 9)   //---DeathRow
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(19,-1,string);
      }
        if(GZ[playerid][zonaTeam] == 10)   //---Russian Mafia
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(20,-1,string);
      }
        if(GZ[playerid][zonaTeam] == 11)   //---LCN
      {
         format(string,sizeof(string),""SPLAVA"[Obavestenje] "BELA"Druga organizacija pokusava da zauzime vasu teritoriju. "BELA"[ESC MENU-MAP]");
         SendFamilyMessage(20,-1,string);
      }
      //----------------------------------------------------------------------
      return 1;
   }
   }
   return SCM(playerid, -1, "("BELA"Greska "BELA"Ne nalazite se u blizini tocke za preuzimanje zone!");
}[/pawn]
I dalje ne radi.
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

Takodje mi se to desava i stanovima,kucama firmama itd,kada kreiram ne mogu da kupim kada odem do tog mesta na farmi iznad pickupa i ukucam da kupim kucu ono je kupi.
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

Sada cak iako dodjem iznad tih pickupa nece da zauzima.Isto pise da nisam u blizini zone.
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

Radi samo ako je id zone 0, sa drugim zonama nece.
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)