SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/07/2012, 10:14 AM   #1
mickos
Gangsta
 
mickos's Avatar
 
Join Date: Apr 2012
Posts: 557
Reputation: 746
Default [HELP] Gangzone flash + change (autmatically)

Hey I just make gang zones, I use X-Treme San Andreas Multiplayer Ultimate Mapper for it.
I know how I can make spawn zones, but how can I make it autmaticalli flash?
I mean when ballas the grove street attack it will be red flash on our radar and map. And when Ballas wins in blablabla seconds/minutes than will the grove street gang zone colour change in Purple.

I hope you all understand me and I hope you all can help me

Thx
__________________
Work

[Tutorial] Wat is OnPlayerRequestClass en hoe maak je het.
mickos is offline   Reply With Quote
Old 13/07/2012, 10:21 AM   #2
clarencecuzz
Gangsta
 
Join Date: Jul 2010
Location: Australia
Posts: 928
Reputation: 92
Default Re: [HELP] Gangzone flash + change (autmatically)

What are the terms for a team capturing a gangzone? Do you use a command like /capture to capture the zone, or do they have to stay inside the gangzone for a certain amount of time?
clarencecuzz is offline   Reply With Quote
Old 13/07/2012, 10:26 AM   #3
mickos
Gangsta
 
mickos's Avatar
 
Join Date: Apr 2012
Posts: 557
Reputation: 746
Default Re: [HELP] Gangzone flash + change (autmatically)

Well if I Ballas gang member and I am going alone or with my group (of the ballas) to Grove Street, (coarse street corridor area are still green, like the ballas grove street comes in and attacks in and around as 'n some time in coarse street remains, to the hallway area of coarse street flashing in red, and if the ballas manage to grove Street to conquer changed the geknipperde grove steet zone in purple (purple is the color of the ballas) But it can also be different, for example, that Los Santos Vagos or the Ballas The Russian Mafia or street coarse zone to conquer ..
__________________
Work

[Tutorial] Wat is OnPlayerRequestClass en hoe maak je het.
mickos is offline   Reply With Quote
Old 13/07/2012, 11:36 AM   #4
mickos
Gangsta
 
mickos's Avatar
 
Join Date: Apr 2012
Posts: 557
Reputation: 746
Default Re: [HELP] Gangzone flash + change (autmatically)

Anyone
__________________
Work

[Tutorial] Wat is OnPlayerRequestClass en hoe maak je het.
mickos is offline   Reply With Quote
Old 13/07/2012, 12:04 PM   #5
DarrenReeder
Huge Clucker
 
DarrenReeder's Avatar
 
Join Date: Apr 2010
Posts: 489
Reputation: 14
Default Re: [HELP] Gangzone flash + change (autmatically)

Well i am currently developing a similar script, the way i did it was:

1) I have a "turfsync" function that is called on a loop every second.

2)In the function, it loops through all the players and all the gangzones i created (i saved all thier information in an enum variable). It then checks the position of the playerid in comparision to each gangzone.

3) If the player is inside a turf, it checks to see if the turf is taken yet, if its a free turf, it runs a "captureturf" function..

4) If the turf is owned by someone else, it starts a turf war
DarrenReeder is offline   Reply With Quote
Old 13/07/2012, 12:06 PM   #6
mickos
Gangsta
 
mickos's Avatar
 
Join Date: Apr 2012
Posts: 557
Reputation: 746
Default Re: [HELP] Gangzone flash + change (autmatically)

Yes thats what i mean i think so , but how to make it?
__________________
Work

[Tutorial] Wat is OnPlayerRequestClass en hoe maak je het.
mickos is offline   Reply With Quote
Old 13/07/2012, 12:23 PM   #7
DarrenReeder
Huge Clucker
 
DarrenReeder's Avatar
 
Join Date: Apr 2010
Posts: 489
Reputation: 14
Default Re: [HELP] Gangzone flash + change (autmatically)

Well, obviously I do not want to post my own code on here, but go and check the gamemode section of the forum. Look for a gangwar gamemode script and see how they made it!
DarrenReeder is offline   Reply With Quote
Reply

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
Flash Help ? Makaevil Everything and Nothing 0 01/01/2012 09:02 PM
GangZone flash - Important aqu Help Archive 1 27/02/2011 11:52 AM
How to make a Gangzone Flash if one of the players of the gangzone spawn Bearfist Help Archive 0 09/04/2009 03:11 PM


All times are GMT. The time now is 08:13 AM.


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