Gangzones
#1

Hello i wanted to create gangzones for my WWIII gm so i used extreme vehicle plotter but it did everything wrong + it had i virus so i had to buy new computer, so i dont want to make same mistake an i want to ask you guys wich parts of these coordinates should i use to make gangzone
2032.4720,1353.5490,10.8203,44.9622
2032.3799,1343.4668,10.8203,276.4219
2037.0071,1343.5375,10.8203,167.7900
2037.1610,1353.3401,10.8203,7.8436
Reply
#2

please help ppl
Reply
#3

Here:

Код:
#include <a_samp>
new gangzone1;
new gangzone2;
new gangzone3;
new gangzone4;
Then:

Код:
public OnGameModeInit()
{
   gangzone1 = GangZoneCreate(2032.4720,1353.5490,2032.4720+10.0,1343.5490+10.0);
   gangzone2 = GangZoneCreate(2032.3799,1343.4668,2032.3799+10.0,1343.4668+10.0);
   gangzone3 = GangZoneCreate(2037.0071,1343.5375,2037.0071+10.0.0,1343.5475+10.0);
   gangzone4 = GangZoneCreate(2037.1610,1353.3401,2037.1610+10.0,1353.3401+10.0);
   return 1;
}
+10.0 = a little float.You can modifly it.

And:

Код:
public OnPlayerSpawn(playerid)
{
   GangZoneShowForAll(gangzone1,yourcolor);
   GangZoneShowForAll(gangzone2,yourcolor);
   GangZoneShowForAll(gangzone3,yourcolor);
   GangZoneShowForAll(gangzone4,yourcolor);
   return 1;
}
yourcolor = insert what color you want
Reply
#4

no no this is not what i mean i was doing it like
2032.4720,1353.5490,10.8203,44.9622 = is the left down side of the zone
2032.3799,1343.4668,10.8203,276.4219 = is the right down side of the zone
2037.0071,1343.5375,10.8203,167.7900 = is the right upper side of zone
2037.1610,1353.3401,10.8203,7.8436 = is the left upper side of zone

These are just coordinates of the corners of zone they are not a gangzone yet
Reply
#5

Quote:
Originally Posted by Iuri
Here:

Код:
#include <a_samp>
new gangzone1;
new gangzone2;
new gangzone3;
new gangzone4;
Then:

Код:
public OnGameModeInit()
{
   gangzone1 = GangZoneCreate(2032.4720,1353.5490,2032.4720+10.0,1343.5490+10.0);
   gangzone2 = GangZoneCreate(2032.3799,1343.4668,2032.3799+10.0,1343.4668+10.0);
   gangzone3 = GangZoneCreate(2037.0071,1343.5375,2037.0071+10.0.0,1343.5475+10.0);
   gangzone4 = GangZoneCreate(2037.1610,1353.3401,2037.1610+10.0,1353.3401+10.0);
   return 1;
}
+10.0 = a little float.You can modifly it.

And:

Код:
public OnPlayerSpawn(playerid)
{
   GangZoneShowForAll(gangzone1,yourcolor);
   GangZoneShowForAll(gangzone2,yourcolor);
   GangZoneShowForAll(gangzone3,yourcolor);
   GangZoneShowForAll(gangzone4,yourcolor);
   return 1;
}
yourcolor = insert what color you want
Thanks, very useful
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)