SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 07/02/2015, 09:21 AM   #1
Kyance
Gangsta
 
Kyance's Avatar
 
Join Date: Mar 2013
Posts: 817
Reputation: 92
Default Player-based capture zones

tbh, this was supposed to be a tutorial, but i'm too lazy to make one.. sooo... here's a filterscript xD

Player-Based Capture Zones

Introduction & Features
I know there are some capture-zone scripts on the forums, but those (imo) are too hard to understand.
So, I tried creating a capture-zone 'system', which is easier to 'maintain'.

The script doesn't use checkpoints, but areas ( Streamer's "CreateDynamicRectangle", or w.e it was called ), and a text label to indicate the status of the area.

To add a capture-zone, all you have to do is:
  1. Create the gangzone (minx, miny, maxx, maxy)
  2. Get the coords for the 3D Text Label
  3. Increase count of 'MAX_ZONES' by 1 (or, by how many zones you've added)
  4. Add 1 line with the coords (I've given 5 examples, and a loooong tutorial in the script)

Notes
You can remove the 'zcmd' include, I forgot to remove it from testing
Do NOT add zones under the 'To_Fix_Bugs' zone!!

Video:
https://www.youtube.com/watch?v=045oVSOqrxM

Download link:
https://www.mediafire.com/?7xialghyx1y7wg7
or
http://pastebin.com/jVmk8XSu

Changelog:
Code:
>> 07/02/2015 - Version 1.0.0
* Initial release
__________________
I'm amazed how you people are still wasting your time on a decade old game.
Kyance is offline   Reply With Quote
Old 07/02/2015, 03:05 PM   #2
Younes44
Gangsta
 
Younes44's Avatar
 
Join Date: Oct 2013
Posts: 763
Reputation: 78
Default Re: Player-based capture zones

lol good job dude D:
__________________
Left SA:MP, and not avalaible anymore!!
Thanks samp for awesome moments, i enjoy!! Goodbye!
ModernFreeroam: www.mf-samp.com , IP:94.23.255.30:7777
CounterTerroristUnit: www.ctu.w4f.eu , IP:87.98.243.201:6969
xSF: www.xsfserver.com , IP: 87.98.243.201:6969
Exm: www.exmserv.me , IP: exmserv.me:7777
Underground Stunting: www.ustunting.com , IP:145.239.3.225:7777

Thanks everyone,for the awesome moments,
Regards, COD Ghosts owner.
Younes44 ,YOuNeS_Dz ,WarZ ,Bryan_ , Kaneki
Younes44 is offline   Reply With Quote
Old 13/02/2015, 01:28 PM   #3
wahyumahadir
Little Clucker
 
Join Date: Dec 2012
Location: Indonesia
Posts: 47
Reputation: 1
Default Re: Player-based capture zones

Wow Very nice dude (y)
wahyumahadir is offline   Reply With Quote
Old 13/02/2015, 02:10 PM   #4
HydraHumza
Gangsta
 
HydraHumza's Avatar
 
Join Date: Oct 2014
Posts: 626
Reputation: 130
Default Re: Player-based capture zones

Really Nice <3
Really Awesome + Rep
__________________
Quote:
Originally Posted by Kalcor View Post
The fact is, I am right. And if you think I'm wrong, you are wrong.
HydraHumza is offline   Reply With Quote
Old 02/03/2015, 02:06 PM   #5
Fantje
Huge Clucker
 
Join Date: Dec 2014
Posts: 393
Reputation: 9
Default Re: Player-based capture zones

It don't works. I go to the place just like in your video and there is nothing?
Fantje is offline   Reply With Quote
Old 02/03/2015, 02:16 PM   #6
Kyance
Gangsta
 
Kyance's Avatar
 
Join Date: Mar 2013
Posts: 817
Reputation: 92
Default Re: Player-based capture zones

Quote:
Originally Posted by Fantje View Post
It don't works. I go to the place just like in your video and there is nothing?
Did it load?
__________________
I'm amazed how you people are still wasting your time on a decade old game.
Kyance is offline   Reply With Quote
Old 02/03/2015, 04:36 PM   #7
KayJ
Gangsta
 
KayJ's Avatar
 
Join Date: Apr 2014
Posts: 678
Reputation: 64
Default Re: Player-based capture zones

That's what I was thinking for 2 months, lol
KayJ 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
Capture Zones Help ChandraLouis Scripting Help 0 13/03/2014 10:00 AM
Help: Capture Zones DJTunes Scripting Help 0 02/07/2013 12:47 AM
Capture zones ethhackerman Scripting Help 4 16/05/2013 04:12 PM
Capture zones Iron3man Scripting Help 14 03/04/2013 05:32 AM
need last help on capture zones the_zohan Scripting Help 0 08/06/2012 11:02 AM


All times are GMT. The time now is 06:36 PM.


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