SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/11/2017, 05:16 PM   #11
RIDE2DAY
Huge Clucker
 
RIDE2DAY's Avatar
 
Join Date: Jul 2015
Location: Modena, Italy
Posts: 221
Reputation: 367
Default Re: GZ Circles - gang zones circles on the map

Quote:
Originally Posted by Y_Less View Post
Nice. But:



Why? I assume by this you mean y_hooks, which is only one part of YSI. However, y_hooks code is entirely compatible with ALS, so if you already have an ALS version there is no need at all for a y_hooks version - even YSI uses a combination of both internally (though most of those ALS hooks are ensuring y_hooks works).

The point of y_hooks is to write less code than ALS (it's also faster). If you've already gone to the trouble of writing all the ALS boilerplate, there's no point using y_hooks. You will end up writing more code to use y_hooks than you would if you just stuck with the single long version.
Yes, y_hooks is one of the reasons, but I'd like just to add iterators to iter throught all the gang zones a shape has, when showing/hiding/destroying them. I guess this way I don't have to check valid (or not) array cells.
RIDE2DAY is online now   Reply With Quote
Old 09/11/2017, 07:57 AM   #12
StrikerZ
High-roller
 
StrikerZ's Avatar
 
Join Date: Mar 2016
Location: India
Posts: 1,123
Reputation: 154
Default Re: GZ Circles - gang zones circles on the map

nice
__________________
StrikerZ is offline   Reply With Quote
Old 09/11/2017, 10:55 PM   #13
IlanZ
High-roller
 
IlanZ's Avatar
 
Join Date: Jul 2016
Location: Brasil
Posts: 1,379
Reputation: 75
Default Re: GZ Circles - gang zones circles on the map

Very cool.
IlanZ is offline   Reply With Quote
Old 13/12/2017, 08:40 AM   #14
ohmy
Big Clucker
 
Join Date: Aug 2014
Location: Indonesia
Posts: 58
Reputation: 1
Default Re: GZ Circles - gang zones circles on the map

Quote:
Originally Posted by RogerCosta View Post
Very nice!

I put gz circles in my future pubg gamemode, too.

Can you tell me how to make everything red except in the middle?
__________________
Seal TDM Server Is Cancelled Due To Closing Of Our Hosting
Thanks To All SA-MP Forum Member
For All Tutorial, Plugin, Include, And FS
And All Usefull Thing
ohmy is offline   Reply With Quote
Old 13/12/2017, 10:26 AM   #15
chneubeul
Big Clucker
 
Join Date: May 2009
Posts: 56
Reputation: 0
Default Re: GZ Circles - gang zones circles on the map

Awesome ! nice works guys !
chneubeul is offline   Reply With Quote
Old 15/12/2017, 06:02 PM   #16
UserUnk0wn
Big Clucker
 
UserUnk0wn's Avatar
 
Join Date: May 2016
Location: Ganton
Posts: 120
Reputation: 7
Default Re: GZ Circles - gang zones circles on the map

Nice bro, thanks

+REP
__________________
.

[Projeto] Survive in Silence - SilentZ
IP: 192.99.159.168:7802 | Discord: SilentZ Discord
UserUnk0wn is offline   Reply With Quote
Old 16/12/2017, 03:21 AM   #17
Kaperstone
High-roller
 
Kaperstone's Avatar
 
Join Date: May 2011
Location: Russia
Posts: 3,352
Reputation: 822
Default Re: GZ Circles - gang zones circles on the map

Quote:
Originally Posted by ohmy View Post
Can you tell me how to make everything red except in the middle?
There is a picture and a function right under it.

For this you'll need EMPTY_CIRCLE as the first parameter
Code:
GZ_ShapeCreate(EMPTY_CIRCLE, Float:x, Float:y, Float:radius, squares = -1, Float:square_size = 5.0, Float:min_ang = 0.0, Float:max_ang = 360.0)
__________________
Find me on GitHubSEF Community (Official NEF Successor) • SA:MP ReviewsFind me on Steam
Kaperstone is offline   Reply With Quote
Old 19/05/2018, 11:07 AM   #18
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,695
Reputation: 484
Default Re: GZ Shapes - gang zone shapes on the map

Is there any possible way to detect if the player is outside those zones or detecting them if they are inside those?
JaKe Elite is offline   Reply With Quote
Old 19/05/2018, 12:10 PM   #19
CodeStyle175
Huge Clucker
 
CodeStyle175's Avatar
 
Join Date: Apr 2014
Posts: 351
Reputation: 19
Default Re: GZ Shapes - gang zone shapes on the map

yes you take center point of this circle and if player distance is bigger then circle radius, player is out of circle and when same or smaller then inside circle.
CodeStyle175 is offline   Reply With Quote
Old 19/05/2018, 12:15 PM   #20
Logic_
High-roller
 
Logic_'s Avatar
 
Join Date: Jun 2015
Location: Oblivion (#RIPX)
Posts: 1,469
Reputation: 263
Default Re: GZ Shapes - gang zone shapes on the map

Quote:
Originally Posted by JaKe Elite View Post
Is there any possible way to detect if the player is outside those zones or detecting them if they are inside those?
Yes.

Quote:
Originally Posted by CodeStyle175 View Post
yes you take center point of this circle and if player distance is bigger then circle radius, player is out of circle and when same or smaller then inside circle.
That's not the greatest idea when you can use Streamer.
__________________
RIP XXXTentacion [1998-2018]
RIP Fredo [1990-2018]

My Releases: Click me!

Past experiences:
Ex- Developer of COD: Black Ops 3 [2017 - 2018], Palomino Creek RP [2018], NEG [2017], Zombieland [2015] and Evolution Prison RP [2017]
Logic_ 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
How to make a gang zone. No zone wars and capture MarkNelson Scripting Help 2 08/07/2016 03:46 AM
Objects shapes, forms, sizes ScIrUsna Scripting Help 1 20/05/2016 10:38 AM
[AJUDA]Gang Zone DOminaveis ( o meu possui /gang criar) rene20 Português/Portuguese 2 22/09/2010 05:55 PM
Textdraws with certain shapes? FreeSoul Help Archive 2 22/12/2009 04:19 PM


All times are GMT. The time now is 07:40 PM.


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