SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/05/2018, 01:30 PM   #21
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,694
Reputation: 484
Default Re: GZ Shapes - gang zone shapes on the map

Alright, I have created a gang-shape zone for safe zone (Circumferences Type), a gang-shape zone for radiation (empty circle type) and a safe zone (Dyanmic Circle created by Streamer to detect if player is inside/outside the safe zone).

Now how do I detect if the player is inside/outside the radiation?
__________________


JaKe Elite is offline   Reply With Quote
Old 19/05/2018, 02:46 PM   #22
dani18
Big Clucker
 
dani18's Avatar
 
Join Date: Dec 2017
Posts: 115
Reputation: 14
Default Re: GZ Shapes - gang zone shapes on the map

Incredible for a map of battlegrounds.
__________________
RIP X
dani18 is offline   Reply With Quote
Old 08/06/2018, 03:25 PM   #23
Sasino97
High-roller
 
Sasino97's Avatar
 
Join Date: Dec 2010
Location: Italy
Posts: 1,439
Reputation: 102
Default Re: GZ Shapes - gang zone shapes on the map

Do you think is it possible to use this to create a wanted level system similar to that of GTA IV and GTA V, or would that exceed the limit?
What I mean is that, since each player would only need to see his own circle, will the system only count his text draws, or will it count everyone's text draws?
__________________
  • SA-MP Game Modes and Filter Scripts (PAWN, MySQL) (8 years experience)
  • Windows Applications (WPF, UWP)
  • Android Applications (Java Android SDK, Xamarin)
  • Web Design and Development (Wordpress, WooCommerce, PHP, MySQL)
  • Game Development (Unity3D, GameMaker Studio, LibGDX)
[email protected]
Use this e-mail - don't PM
Sasino97 is offline   Reply With Quote
Old 08/06/2018, 04:01 PM   #24
Verc
Big Clucker
 
Verc's Avatar
 
Join Date: Apr 2018
Location: 🇯🇵
Posts: 174
Reputation: 29
Default Re: GZ Shapes - gang zone shapes on the map

What textdraw? This doesn't use any textdraw at all
.
Verc is offline   Reply With Quote
Old 15/06/2018, 11:31 AM   #25
Sasino97
High-roller
 
Sasino97's Avatar
 
Join Date: Dec 2010
Location: Italy
Posts: 1,439
Reputation: 102
Default Re: GZ Shapes - gang zone shapes on the map

Quote:
Originally Posted by Verc View Post
What textdraw? This doesn't use any textdraw at all
.
Sorry, I meant GangZone limit.
__________________
  • SA-MP Game Modes and Filter Scripts (PAWN, MySQL) (8 years experience)
  • Windows Applications (WPF, UWP)
  • Android Applications (Java Android SDK, Xamarin)
  • Web Design and Development (Wordpress, WooCommerce, PHP, MySQL)
  • Game Development (Unity3D, GameMaker Studio, LibGDX)
[email protected]
Use this e-mail - don't PM
Sasino97 is offline   Reply With Quote
Old 15/06/2018, 11:50 AM   #26
RIDE2DAY
Huge Clucker
 
RIDE2DAY's Avatar
 
Join Date: Jul 2015
Location: Modena, Italy
Posts: 219
Reputation: 375
Default Re: GZ Shapes - gang zone shapes on the map

Quote:
Originally Posted by Sasino97 View Post
Do you think is it possible to use this to create a wanted level system similar to that of GTA IV and GTA V, or would that exceed the limit?
What I mean is that, since each player would only need to see his own circle, will the system only count his text draws, or will it count everyone's text draws?
There is no way to use "per player gang zones", so the limit is 1024. You could do that, but probably you won't be able to display more than 10 - 15 circles at once. The GTA V style would be way better as it would use less gang zones.

On the other hand, you would have to update the shapes really quick in order to get a smooth animation on the radar, in my opinion this isn't a good idea.

Kind regards.
RIDE2DAY is offline   Reply With Quote
Old 17/09/2018, 09:21 PM   #27
Kontrol
Huge Clucker
 
Join Date: Jan 2012
Location: British Solider
Posts: 212
Reputation: 24
Default Re: GZ Shapes - gang zone shapes on the map

Hello I cant seem to get this showing a circle? anyone know what I'm doing wrong.
thanks

Code:
public EnterPlayerIntoLobby(playerid);
public EnterPlayerIntoLobby(playerid) // called when players are sent to lobby
{
	SetPlayerPos(playerid,-1,-1,-1); // Spawn point in lobby.
	ResetPlayerWeapons(playerid);
	SetPlayerVirtualWorld(playerid,0);
	TogglePlayerControllable(playerid,1);
	TogglePlayerSpectating(playerid,0);
	SetTimerEx("SpawnPlayerInGame",6000,false,"i",playerid);
	CreateSafeZone();
	GZ_ShapeShowForPlayer(playerid, SafeZone, -1); // This needs moving and changing to SHOWFORALL after lobby
	printf("Showing safezone for player");
	return 1;
}
forward  CreateSafeZone();
public CreateSafeZone()
{
	SafeZone = GZ_ShapeCreate(CIRCUMFERENCE,135.5993,-71.9018,50,COLOR_RED,5.0,0.0,360.0);
	printf("Creating Safezone");
	return 1;
}
__________________

Follow us on ********. Get involved.
_________________________________________________
Maximum Stunting:
95.211.180.224:7833
Kontrol 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 09:00 AM.


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