SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 02/03/2014, 09:46 PM   #1
s3rious
Little Clucker
 
s3rious's Avatar
 
Join Date: Feb 2012
Location: V materinej piči
Posts: 43
Reputation: 16
Default Gang Zone System (Gang Wars) RC-3

Gang Zone System
by s3rious

Hey there. Today i want to release my re-worked Gang zone system again. I made some improvements and this version should contain less bugs.

There is no need to use s3Zone include. You need just this script as include and customize your gamemode. Add some callback into OnPlayerDeath & OnPlayerDisconnect. I made this new version because i want improve it. Maybe it contain some bugs. I haven't tested it yet so much only some basic actions. There is any callbacks to add into your Gamemode (y_hooks - so you need to download YSI library if you don't have download it).

Creating zone:
To create gangzone you need to add some lines (as always) into OnGameModeInit or OnFilterScriptInit:

pawn Code:
CreateZone(Float:MinX, Float:MinY, Float:MaxX, Float:MaxY, Zone Team, Zone Color)
Coordinations as always the same style of creating zone but there is ZoneTeam & ZoneColor
ZoneTeam is the number (example T_GROOVE as define for some team) which use to be assigned with some variable.
Let's make some example.

pawn Code:
CreateZone(-2761.638, 1284.431, -2514.426, 1521.128, T_BALLAS, 0x8B0A5096);
This means created zone with that coords will be owned by BALLAS team. For proper operation you have to use team var because zone id depends on it. Mostly it is for example gTeam[playerid] or pData[playerid][Team]. It's up to you.

Team Set Up:
In include you will find function GetTeam which return gTeam[playerid]. You need to change return value such as you are using (In which var you store team ID).

Download:
Solidfiles: Version 1.5 RC-3

Please report me all bugs you find i will be happy if you help me Thank you for rating & commenting

Last edited by s3rious; 12/01/2015 at 12:12 PM.
s3rious is offline   Reply With Quote
Old 07/07/2014, 09:38 AM   #2
Shevil
Little Clucker
 
Join Date: Jul 2014
Posts: 14
Reputation: 0
Default Re: Gang Zone System (Gang Wars) RC2

Very Nice.I maby test it!
Shevil is offline   Reply With Quote
Old 11/01/2015, 09:01 PM   #3
s3rious
Little Clucker
 
s3rious's Avatar
 
Join Date: Feb 2012
Location: V materinej piči
Posts: 43
Reputation: 16
Thumbs up Re: Gang Zone System (Gang Wars) RC2

Thank you. Message me in case of some problems...
s3rious is offline   Reply With Quote
Old 11/01/2015, 09:10 PM   #4
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,411
Reputation: 439
Default Re: Gang Zone System (Gang Wars) RC2

This seems very unorganized, and non-user friendly. Why should THEY have to put stuff in OnGameModeInit for it to work?

Shouldn't the include do it? If you don't know how to use ALS hooking, y_hooks is pretty easy.
Abagail is online now   Reply With Quote
Old 11/01/2015, 09:20 PM   #5
s3rious
Little Clucker
 
s3rious's Avatar
 
Join Date: Feb 2012
Location: V materinej piči
Posts: 43
Reputation: 16
Default Re: Gang Zone System (Gang Wars) RC2

Quote:
Originally Posted by Abagail View Post
This seems very unorganized, and non-user friendly. Why should THEY have to put stuff in OnGameModeInit for it to work?

Shouldn't the include do it? If you don't know how to use ALS hooking, y_hooks is pretty easy.
Aww thanks i've never thinking about that.. i'll try make it more user-friendly.. thanks for suggestion

Edit: y_hooks has been added!

Last edited by s3rious; 11/01/2015 at 09:52 PM.
s3rious is offline   Reply With Quote
Old 26/02/2015, 02:08 AM   #6
Tookapack
Little Clucker
 
Join Date: Dec 2014
Posts: 2
Reputation: 0
Default Re: Gang Zone System (Gang Wars) RC2

I feel stupid for bumping this, but would this work perhaps on a regular deathmatch server, Like you create a gang and can take over a turf or do you need to make it tdm based and have the teams already set up?
Tookapack is offline   Reply With Quote
Old 27/02/2015, 11:44 AM   #7
Excel™
Gangsta
 
Excel™'s Avatar
 
Join Date: Jul 2012
Posts: 559
Reputation: 95
Default Re: Gang Zone System (Gang Wars) RC2

Pastebin?
__________________
NO MORE CODING SAMP :V
JUST PLAYING...
Excel™ 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
[Tutorial] Gang Zone Wars MadeMan Tutorials 98 30/04/2017 02:06 PM
Help with gang zone system. HitterHitman Scripting Help 9 04/01/2014 10:41 AM
[AJUDA]Gang Zone DOminaveis ( o meu possui /gang criar) rene20 Português/Portuguese 2 22/09/2010 06:55 PM


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


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