[Include] Gang Zone System (Gang Wars) RC2
#1

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
Reply
#2

Very Nice.I maby test it!
Reply
#3

Thank you. Message me in case of some problems...
Reply
#4

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.
Reply
#5

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!
Reply
#6

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?
Reply
#7

Pastebin?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)