SA-MP Forums Archive
[Include] Gang Zone System (Gang Wars) RC2 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Gang Zone System (Gang Wars) RC2 (/showthread.php?tid=498313)



Gang Zone System (Gang Wars) RC-3 - s3rious - 02.03.2014

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


Re: Gang Zone System (Gang Wars) RC2 - Shevil - 07.07.2014

Very Nice.I maby test it!


Re: Gang Zone System (Gang Wars) RC2 - s3rious - 11.01.2015

Thank you. Message me in case of some problems...


Re: Gang Zone System (Gang Wars) RC2 - Abagail - 11.01.2015

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.


Re: Gang Zone System (Gang Wars) RC2 - s3rious - 11.01.2015

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!


Re: Gang Zone System (Gang Wars) RC2 - Tookapack - 26.02.2015

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?


Re: Gang Zone System (Gang Wars) RC2 - Excelâ„¢ - 27.02.2015

Pastebin?