SA-MP Forums Archive
Gangzones - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Gangzones (/showthread.php?tid=138557)



Gangzones - stanLeys - 02.04.2010

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


Re: Gangzones - stanLeys - 02.04.2010

please help ppl


Re: Gangzones - Iuri - 02.04.2010

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


Re: Gangzones - stanLeys - 02.04.2010

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


Re: Gangzones - Saorp - 03.04.2010

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