Gang Zones
#1

Hi i need some help on adding Gang Zones.

Ive got the co-ords and stuff for them i know they should work but when do i put them in my script?

Here are what ive got

// pyramid casino
2082.442382, 1203.333618, 2417.735595, 1363.207885
new zoneid = GangZoneCreate(playerid, 2082.442382, 1203.333618, 2417.735595, 1363.207885);
GangZoneShowForAll(zoneid, -436207489);

//camelot zone
2077.629638, 978.157531, 2342.387207, 1188.140502
new zoneid = GangZoneCreate(playerid, 2077.629638, 978.157531, 2342.387207, 1188.140502);
GangZoneShowForAll(zoneid, 568131711);

// 4drags
1872.176757, 938.319641, 2037.270996, 1088.505615
new zoneid = GangZoneCreate(playerid, 1872.176757, 938.319641, 2037.270996, 1088.505615);
GangZoneShowForAll(zoneid, -109575041);

// hotel
1837.709350, 1282.439575, 2037.077270, 1448.544921
new zoneid = GangZoneCreate(playerid, 1837.709350, 1282.439575, 2037.077270, 1448.544921);
GangZoneShowForAll(zoneid, -65409);

// royal casino
2077.585449, 1377.809570, 2242.517822, 1527.665161
new zoneid = GangZoneCreate(playerid, 2077.585449, 1377.809570, 2242.517822, 1527.665161);
GangZoneShowForAll(zoneid, 64391039);
Reply
#2

bump i really need help
Reply
#3

Help the guy.
I cant help cause i cant do it
Reply
#4

First of all you need to assign them all to a different zoneid. aka

new pCasino = GangZoneCreate(playerid, 2077.629638, 978.157531, 2342.387207, 1188.140502);
GangZoneShowForAll(pCasino, color);

Your colors are completely wrong. To get a color you need to use RGB hex colors and convert them into the pawn version.

Example: http://htmlhelp.com/cgi-bin/color.cgi

Crimson is #DC143C

So the Pawn version of that would be 0xDC143C**

Note the ** is the transparency. Completely opaque is FF, completely transparent is 00.
https://sampwiki.blast.hk/wiki/Colors_List

Go to that link on the wiki and look under "Alpha values (transparency)"

You can see how the transparency value gets lower for more transparency. I normally use 96. So for a crimson colored gang zone that's partly transparent. your color would be 0xDC143C96



That should work.
Reply
#5

I Use this program to make a gang zone
http://forum.sa-mp.com/index.php?topic=14702.0
Its very helpful for me
Reply
#6

Quote:
Originally Posted by m47
I Use this program to make a gang zone
http://forum.sa-mp.com/index.php?topic=14702.0
Its very helpful for me
yes i use that to, but you would put those codes under "OnGamemodeInt" head to www.wiki.sa-mp.com serch "Gang Zones" that will show you what to do
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)