05.01.2008, 09:57
SA:MP Project
KowaZ Zone Include [KZI]
- Newest Version: v1.0 -
KZI.inc:
Destription:
This file contains the functions for the gangs and for the zones. You can find altogether 48 functions (including the macros) and some #define constants. You just need to pu the KZI.inc in your pawno/include folder and write in your script the following line: #include <KI>. The functions will be listed on the right column (id you're using Pawno).
I'm using bitwise operators for more memory spaces. You have a limit, that you're not recommend to change: the MAX_ZONES and the MAX_GANGS. You shouldn't change them.
Be careful, because the functions doesn't check the validity of the given IDs, so you should check it with calling the Zone_isActive() or Gang_IsActive() functions.
Callbacks:
OnPlayerEnterZone(playerid, zoneid)
Called when a player entered in a zone.
OnPlayerLeaveZone(playerid, zoneid)
Called when a player left in a zone.
Core functions:
KZI_Init();
Paste this in the entry point of your script.
KZI_OnPlayerSpawn(playerid);
Paste this in the OnPlayerSpawn.
KZI_OnPlayeDisconnect(playerid);
Paste this in the OnPlayeDisconnect.
KZI_Loop();
Call this function in every ZONE_LOOP_FREQUENCY ms.
kzi-handler.pwn:
Destription:
With this filterscript you can create, modify zones with ease. The are only 2 commands: /azone and /kzi-colors. This version doesn't save zones or load them from file or database.
Commands:
These commands are restricted to RCON admins.
/azone create [name]
Creates a new zone.
/azone destroy [zoneid]
Deletes a zone.
/azone visible [zoneid]
Toggle the zone visible/invisible.
/azone gang [zoneid] [gangid]
Sets the zone's gang.
/azone flash [zoneid]
Sets the zone flashing or not.
/azone lock [zoneid]
Locks the zone.
/azone unlock [zoneid]
Unlocks the zone.
/azone minx [zoneid] [value]
Sets the MinX coordinate.
/azone miny [zoneid] [value]
Sets the MinY coordinate.
/azone maxx [zoneid] [value]
Sets the MaxX coordinate.
/azone maxy [zoneid] [value]
Sets the MaxY coordinate.
gangwar.pwn:
Destription:
This is an example gamemode based on the KZI system. No vehicles included, just 2 teams and 4 zones. The teams can capture the enemy zones with killing enemy gangmembers on their zone. After 20 kills, a gangwar will start. The first team who kills an enemy 20 times, win the war.
I know this is not the best gangwar-system. I saw a better gangwar-system in ******'s YSI project, so I'll request a permission to use his time-related gangwar-system.
Downloads
- v0.2.1 - v1.0 -
v1.0
SA:MP Project: KowaZ Zone Include v1.0 RECOMMENDED
v0.2
KowaZ Zone System v0.2.1
KowaZ Zone System v0.2.2
KowaZ Zone System v0.2.3
v0.3
KowaZ Zone System v0.3.1
KowaZ Zone System v0.3.2
v0.4
KowaZ Zone System v0.4.1
v0.5
The KowaZ Project v0.5.1
The KowaZ Project v0.5.2
Ковалски