Friday - 18. 09. 2026 •  Ucitavanje...
Link #1 Link #2 Link #3 Link #4 Link #5

!!

Registruj se i otključaj pun sadržaj

Kao gost imaš ograničen pristup forumu.
Registracijom dobijaš pristup svim temama, možeš pisati poruke, učestvovati u diskusijama i biti dio naše zajednice.

Author Topic: teritorije  (Read 63 times)

Online

LoKiBof, Newbie

    Postova: 6
  • RESPECT: 0
    • View Profile
teritorije
on: September 15, 2026, 03:00:44 PM
kako da napravim da kad otvorim mapu na teritorijama imaju brojevi ako moze neko pokazati


Online

taha, Newbie

    Postova: 1
  • RESPECT: 0
    • View Profile
Re: teritorije
Reply #1 on: September 16, 2026, 01:13:16 AM
posalji kod teritorija


Online

LoKiBof, Newbie

    Postova: 6
  • RESPECT: 0
    • View Profile
Re: teritorije
Reply #2 on: September 16, 2026, 11:07:11 PM
   for( new id = 1; id < MAX_GZONE; id++ ) {

      new filename[ 32 ];
      format( filename, sizeof( filename ), F_GZONE, id );

      if( fexist( filename ) ) {

            new string[ 256 ];

         INI_ParseFile( filename, "GZone_Load", .bExtra = true, .extra = id );

            gZoneInfo[ id ][ gZoneTime ] = 0;
         if( !gZoneInfo[ id ][ gZoneTaken ] ) {

            gZoneInfo[ id ][ gZonePickup ] = CreateDynamicPickup( 1313, 1, gZoneInfo[ id ][ gZonePickupPos ][ 0 ], gZoneInfo[ id ][ gZonePickupPos ][ 1 ], gZoneInfo[ id ][ gZonePickupPos ][ 2 ], 0, 0 );
            gZoneInfo[ id ][ gZone3D ] = CreateDynamic3DTextLabel( ""col_white"[ TERITORIJA ]\nTeritorija je "col_blue"slobodna"col_white"\nAko zelis da je zauzmes kucaj "col_blue"/zauzmi", BELA, gZoneInfo[ id ][ gZonePickupPos ][ 0 ], gZoneInfo[ id ][ gZonePickupPos ][ 1 ], gZoneInfo[ id ][ gZonePickupPos ][ 2 ], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 0 );
         }
         else if( gZoneInfo[ id ][ gZoneTaken ] ) {

             gZoneInfo[ id ][ gZonePickup ] = CreateDynamicPickup( 1313, 1, gZoneInfo[ id ][ gZonePickupPos ][ 0 ], gZoneInfo[ id ][ gZonePickupPos ][ 1 ], gZoneInfo[ id ][ gZonePickupPos ][ 2 ], 0, 0 );
             format( string, sizeof( string ), ""col_white"[ TERITORIJA ]\nTeritorija je u vlasnistvu bande "col_blue"%s"col_white"\nAko zelis da je zauzmes kucaj "col_blue"/zauzmi",  OI[ gZoneInfo[ id ][ gZoneGangID ] ][ oName ] );
             gZoneInfo[ id ][ gZone3D ] = CreateDynamic3DTextLabel( string, BELA, gZoneInfo[ id ][ gZonePickupPos ][ 0 ], gZoneInfo[ id ][ gZonePickupPos ][ 1 ], gZoneInfo[ id ][ gZonePickupPos ][ 2 ], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 0 );
         }

         gZoneInfo[ id ][ gZoneID ] = GangZoneCreate( gZoneInfo[ id ][ gZoneMinX ], gZoneInfo[ id ][ gZoneMinY ], gZoneInfo[ id ][ gZoneMaxX ], gZoneInfo[ id ][ gZoneMaxY ] );
            gZoneInfo[ id ][ gZoneRectAngle ] = CreateDynamicRectangle( gZoneInfo[ id ][ gZoneMinX ], gZoneInfo[ id ][ gZoneMinY ], gZoneInfo[ id ][ gZoneMaxX ], gZoneInfo[ id ][ gZoneMaxY ], -1, -1, -1 );
      }
   }


 


Vrati se na pocetak
SMF 2.0.19 | SMF © 2021, Simple Machines
Page created in 0.373 seconds with 24 queries.
ZBS © 2011 - 2024, Zapadni Balkan SA:MP
Weiss X 10.2 © 2014, Jade Works Studio
Footer background belongs to GTA Forums
SimplePortal 2.3.7 © 2008-2026, SimplePortal