SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 08/07/2009, 05:36 PM   #1
V1ceC1ty
Banned
 
Join Date: Oct 2008
Location: West Australia
Posts: 1,896
Reputation: 273
Default Gang Zones

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);
V1ceC1ty is offline  
Old 09/07/2009, 12:58 AM   #2
V1ceC1ty
Banned
 
Join Date: Oct 2008
Location: West Australia
Posts: 1,896
Reputation: 273
Default Re: Gang Zones

bump i really need help
V1ceC1ty is offline  
Old 09/07/2009, 01:00 AM   #3
argon
Big Clucker
 
Join Date: Jul 2009
Posts: 82
Reputation: 0
Default Re: Gang Zones

Help the guy.
I cant help cause i cant do it
argon is offline  
Old 09/07/2009, 01:12 AM   #4
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 384
Reputation: 2
Default Re: Gang Zones

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.
http://wiki.sa-mp.com/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.
lavamike is offline  
Old 09/07/2009, 05:38 AM   #5
roar
Huge Clucker
 
roar's Avatar
 
Join Date: May 2009
Location: Indonesia
Posts: 297
Reputation: 17
Default Re: Gang Zones

I Use this program to make a gang zone
http://forum.sa-mp.com/index.php?topic=14702.0
Its very helpful for me
__________________
Quote:
Experience is your best teacher
roar is offline  
Old 23/09/2009, 08:59 AM   #6
Flake.
High-roller
 
Flake.'s Avatar
 
Join Date: Sep 2009
Location: 1400
Posts: 1,166
Reputation: 132
Default Re: Gang Zones

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
Flake. is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gang Zones BLAbla93 Help Archive 2 21/04/2010 02:49 AM
[HELP]Problems with Gang Zones sushihusi Help Archive 7 07/03/2010 04:54 PM
[duv] gang zones nao aparecem xolp25 PortuguÍs/Portuguese 2 07/01/2010 04:26 PM
Help with Gang Zones caribe88 Help Archive 4 14/10/2009 03:26 PM
A little problem with gang zones (only create gang zones) CTCCoco Help Archive 4 20/02/2009 10:59 AM


All times are GMT. The time now is 02:53 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.