PDA

View Full Version : SA:MP Project: KowaZ Zone Include [KZI]


Kowalski
05/01/2008, 10:57 AM
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 Y_Less'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 (http://www.kowaz.hu/downloads/kzi-1-0.zip) RECOMMENDED

v0.2
KowaZ Zone System v0.2.1 (http://www.muszakihiba.hu/kowaz/Zone/kowzone021.zip)
KowaZ Zone System v0.2.2 (http://www.muszakihiba.hu/kowaz/Zone/kowzone022.zip)
KowaZ Zone System v0.2.3 (http://www.muszakihiba.hu/kowaz/Zone/kowzone023.zip)

v0.3
KowaZ Zone System v0.3.1 (http://www.muszakihiba.hu/kowaz/Zone/kzzone031.zip)
KowaZ Zone System v0.3.2 (http://www.muszakihiba.hu/kowaz/Zone/kzzone032.zip)

v0.4
KowaZ Zone System v0.4.1 (http://www.muszakihiba.hu/kowaz/Zone/kowzone041.zip)

v0.5
The KowaZ Project v0.5.1 (http://www.muszakihiba.hu/kowaz/Zone/kowaz051.zip)
The KowaZ Project v0.5.2 (http://www.muszakihiba.hu/kowaz/Zone/kowaz052.zip)



Ковалски

cmg4life
05/01/2008, 12:41 PM
Great... one little thing :D could u do K_Command ?? :mrgreen:

Kowalski
05/01/2008, 12:44 PM
Great... one little thing :D could u do K_Command ?? :mrgreen:


You can rewrote the functions, if you want. KowaZ tags are for solving problems with existing functions.
If you want, I can write them all to K_ :D (or I'll release a K_ version. lol)

Maniek
05/01/2008, 02:53 PM
When j try to complite the pawn j heve errors :/
(77) : error 017: undefined symbol "strtok"
(77) : error 033: array must be indexed (variable "cmd")
(85) : error 017: undefined symbol "strtok"
(85) : error 033: array must be indexed (variable "tmp")
(129) : error 017: undefined symbol "strtok"
(129) : error 033: array must be indexed (variable "tmp")
(150) : error 017: undefined symbol "strtok"
(150) : error 033: array must be indexed (variable "tmp")
(171) : error 017: undefined symbol "strtok"
(171) : error 033: array must be indexed (variable "tmp")
(192) : error 017: undefined symbol "strtok"
(192) : error 033: array must be indexed (variable "tmp")
(199) : error 017: undefined symbol "strtok"
(199) : error 033: array must be indexed (variable "tmp")
(219) : error 017: undefined symbol "strtok"
(219) : error 033: array must be indexed (variable "tmp")
(226) : error 017: undefined symbol "strtok"
(226) : error 033: array must be indexed (variable "tmp")
(246) : error 017: undefined symbol "strtok"
(246) : error 033: array must be indexed (variable "tmp")
(253) : error 017: undefined symbol "strtok"
(253) : error 033: array must be indexed (variable "tmp")
(273) : error 017: undefined symbol "strtok"
(273) : error 033: array must be indexed (variable "tmp")
(280) : error 017: undefined symbol "strtok"
(280) : error 033: array must be indexed (variable "tmp")

MaTrIx4057
05/01/2008, 02:55 PM
new tmp[256];

tmp = strtok(cmdtext,idx);


strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}

Kowalski
05/01/2008, 03:05 PM
Update


kowaz_zones.h

All KowaZ_ tags replaced with K_.

New functions added:

K_GetZoneCount();
Returns the amount of the zones (not the gang zones count!).

K_SaveZonesInFile(filename[]);
Saves the zones in a specified file.

K_LoadZonesFromFile(filename[]);
Loads the zones from a specified file.

This saving system saves the color, the name and the position.
If the file doesn't exist, the script won't create it, so you need to create the file by yourself.


Download:

Download link of:
- kowaz_zones.h
- kowzonehand022.pwn
- kowzonehand022.amx

KowaZ Zone System v0.2.2 (http://www.muszakihiba.hu/kowaz/Zone/kowzone022.zip)


Kowalski

Chumillas
05/01/2008, 03:31 PM
Still Doesnt woks for me

Same error that have Maniek

Kowalski
05/01/2008, 03:32 PM
Update


kowaz_zones.h

Fixed K_SetZonePos() bug.

Download:

Download link of:
- kowaz_zones.h
- kowzonehand023.pwn
- kowzonehand023.amx

KowaZ Zone System v0.2.3 (http://www.muszakihiba.hu/kowaz/Zone/kowzone023.zip)



Doesnt woks for me


1.) Download the newest version.
2.) Where is that problem? In the INC or in the FS?


Kowalski

jesse989898
05/01/2008, 03:44 PM
thank you :)
i will try it as soon as i can get my GTA:SA working again :(

Kowalski
05/01/2008, 03:49 PM
thank you :)
i will try it as soon as i can get my GTA:SA working again :(


Okay. :D
And check the kowaz_zones.h.
When the script saves the zones, converts the Hex to RGBA. On load, coverts it back. That was what I taked about.

I almost forgot. Credits to:
- [NB]mabako (rgba2int and int2rgba functions)
- Denver (strsplit function)

RobbyMeister
05/01/2008, 03:53 PM
Lol, another Argonath matey scripting Pawn.

Chumillas
05/01/2008, 03:56 PM
Fixed

Kowalski
05/01/2008, 03:58 PM
Lol, another Argonath matey scripting Pawn.


Hi Robby. :D
I'm scripting Pawn 10 months ago.



Update

Doesnt woks for me

2.) Where is that problem? In the INC or in the FS?

Kowalski


.pwn(79) : error 017: undefined symbol "strtok"
.pwn(79) : error 033: array must be indexed (variable "cmd")
.pwn(87) : error 017: undefined symbol "strtok"
.pwn(87) : error 033: array must be indexed (variable "tmp")
.pwn(131) : error 017: undefined symbol "strtok"
.pwn(131) : error 033: array must be indexed (variable "tmp")
.pwn(152) : error 017: undefined symbol "strtok"
.pwn(152) : error 033: array must be indexed (variable "tmp")
.pwn(173) : error 017: undefined symbol "strtok"
.pwn(173) : error 033: array must be indexed (variable "tmp")
.pwn(194) : error 017: undefined symbol "strtok"
.pwn(194) : error 033: array must be indexed (variable "tmp")
.pwn(201) : error 017: undefined symbol "strtok"
.pwn(201) : error 033: array must be indexed (variable "tmp")
.pwn(221) : error 017: undefined symbol "strtok"
.pwn(221) : error 033: array must be indexed (variable "tmp")
.pwn(228) : error 017: undefined symbol "strtok"
.pwn(228) : error 033: array must be indexed (variable "tmp")
.pwn(248) : error 017: undefined symbol "strtok"
.pwn(248) : error 033: array must be indexed (variable "tmp")
.pwn(255) : error 017: undefined symbol "strtok"
..pwn(255) : error 033: array must be indexed (variable "tmp")
.pwn(275) : error 017: undefined symbol "strtok"
.pwn(275) : error 033: array must be indexed (variable "tmp")
.pwn(282) : error 017: undefined symbol "strtok"
\zone.pwn(282) : error 033: array must be indexed (variable "tmp")
26 Errors.


You need to paste the strtok() function in your script.
Link to the function: strtok (http://forum.sa-mp.com/index.php?topic=2868.0)


EDIT: Added function list. Check the first post or click here (http://www.muszakihiba.hu/kowaz/Zone/funclist.html)

ReX
05/01/2008, 05:07 PM
very nice
working.... :mrgreen: :mrgreen: :mrgreen:

Kowalski
05/01/2008, 05:25 PM
Update


kowaz_zones.h

Added 6 more functions.

K_ToggleZoneVisibleForPlayer(zoneid, toggle, playerid);
Sets the zone visible/invisible for the player.

K_ToggleZoneFlashForPlayer(zoneid, toggle, playerid);
Sets the zone flashing for the player or stop the flashing.

K_ToggleZoneLockedForPlayer(zoneid, toggle, playerid);
Sets the zone locked/unlocked for the player.

K_IsZoneLockedForPlayer(zoneid, playerid);
Returns 1, if the zone is locked for the player, else returns 0.

K_IsZoneFlashForPlayer(zoneid, playerid);
Returns 1, if the zone is flashing for the player, else returns 0.

K_IsZoneVisibleForPlayer(zoneid, playerid);
Returns 1, if the zone is visible for the player, else returns 0.

Renamed 3 functions.

K_IsZoneVisible renamed to K_IsZoneVisibleForAll

K_IsZoneFlash renamed to K_IsZoneFlashForAll

K_IsZoneLocked renamed to K_IsZoneLockedForAll



kowzonehand031.pwn

Those 3 functions renamed in the newest version too.


Download:

Download link of:
- kowaz_zones.h
- kowzonehand031.pwn
- kowzonehand031.amx

KowaZ Zone System v0.3.1 (http://www.muszakihiba.hu/kowaz/Zone/kowzone031.zip)



very nice
working.... :mrgreen: :mrgreen: :mrgreen:


Thank you ReX! :)


Kowalski

Kowalski
05/01/2008, 05:32 PM
In the next Version:
- english/hungarian filterscript
- password for zones :P
- fix the plane bug (try to fly in a zone with a plane. woah auch. ;))

kc
05/01/2008, 05:33 PM
Awesome work Kowalski :D will be using this to mark DM zones and disable certain script features inside them (vehicle fixing, etc...)

Kowalski
05/01/2008, 06:17 PM
Still Doesnt woks for me

Same error that have Maniek


So you added strtok in the filterscript's pwn and still doesn't work?


kc ]
Awesome work Kowalski :D will be using this to mark DM zones and disable certain script features inside them (vehicle fixing, etc...)


okay nice :D

ReX
05/01/2008, 06:28 PM
LOL
Who are you? Scripting brain ? :D
Tried new version :P amazing >:D

snipe69
05/01/2008, 06:32 PM
omg this is awesome thanks ;)

Grove
05/01/2008, 06:40 PM
nce work

Kowalski
05/01/2008, 06:47 PM
Update


kowaz_zones.h

Fixed bugs with visible.
Fixed some little bugs.
Fixed plane stopping when enter a locked zone.

Added KZZone_OnPlayerSpawn(playerid);
KZZone_OnPlayerConnect taken out.


kzzone032.pwn

Added strtok().


Download:

Download link of:
- kowaz_zones.h
- kzzone032.pwn
- kzzone032.amx

KowaZ Zone System v0.3.2 (http://www.muszakihiba.hu/kowaz/Zone/kzzone032.zip)


Snipe ]
omg this is awesome thanks ;)


nce work


Thank you both. :D And congrats for your 600th post [M]Snipe. ;)


Kowalski

maxing
05/01/2008, 09:04 PM
Thank you.
This script one of the best zones script, indeed possibly the best.
I wait for the next version ;-)

Kowalski
06/01/2008, 09:31 AM
Update: Version 0.4.1
- 2008/01/06 -


KowaZ_Zones.h

#1 Added 6 more functions:

K_SendMessageInZone(zoneid, color, message[]);
K_SendGameTextInZone(zoneid, text[], time, style);

These functions send a message/gametext for all players, who're in the specified zone.

K_SetZoneInterior(zoneid, interiorid);
K_GetZoneInterior(zoneid);

You can set the zone's interior from now. If you are in the zone, but not in the same interior, you won't see the interior. It's usefull to create zones in buildings. :)

K_AllowWeaponInZoneForPlayer(zoneid, playerid, allow);
K_AllowWeaponInZoneForAll(zoneid, allow);

With these functions you can block the weapon usage in the zones. If you enter in a zone, where the weapons aren't allowed, the server simply resets your weapons, but if you leave the zone, the server gives them back. Usefull for creating testing zones in DM servers. :P

#2 Advenced K_CreateZone() function:

You can set the interior of the zone when you creates it.
K_CreateZone(name[], Float:minx, Float:miny, Float:maxx, Float:maxy, color, interior=0);

#3 Fixed K_ToggleZoneVisibleForPlayer() bug.

It was not a too big bug. Just the server trought that you don't see the zone on your MAP.

#4 Advenced K_SaveZonesInFile() and K_LoadZonesFromFile() functions.

Now the loading-saving system can save and load the interiors of the zones too.

#5 Added KZZone_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid):

Paste this in your OnPlayerInteriorChange() callback. This provides the main-interior-system.


kzzone041.pwn

#1 Added 2 more commands:

/azone weapons [zoneid] [0/1]
Blocks the weapon using in the zone or allows it.

/azone interior [zoneid] [interiorid]
Sets the zone's interior.


Function List

#1 Updated with the new functions:

Click here to check the list (http://www.muszakihiba.hu/kowaz/Zone/funclist.html)


Download

Check the first post or click here for the newest version:
KowaZ Zone System 0.4.1 (http://www.muszakihiba.hu/kowaz/Zone/kowzone041.zip)



Thank you.
This script one of the best zones script, indeed possibly the best.
I wait for the next version ;-)


Thank you maxing, check out this version. And congrats for your 1st post. :P

Hope you like the new features. ;)
I'm out of ideas, if you have some ideas, please post it here. :D

EDIT: I wrote 2007 instead of 2008. :lol:


Kowalski

ReX
06/01/2008, 09:35 AM
mk u lol? :o

You are very very (radio) active :P

I'll try ;) w8 ;) nice baby :lol:

Kowalski
06/01/2008, 09:39 AM
K_SendMessageInZone(zoneid, color, message[]);
K_SendGameTextInZone(zoneid, text[], time, style);
K_AllowWeaponInZoneForPlayer(zoneid, playerid, allow);
K_AllowWeaponInZoneForAll(zoneid, allow);

Omfg, that rocks so hard, though I've just finished working with it (Tried some zones, very nice)...
I'll test those new functions ^^ too


I tested all the functions and they must work.

Kowalski is waiting for ideas.

EDIT: First post and function list updated.

ReX
06/01/2008, 10:01 AM
nice. I love you . :lol:

WORKIIIING :mrgreen:

Kowalski
06/01/2008, 10:07 AM
nice. I love you . :lol:

WORKIIIING :mrgreen:


Better tell me what you want to see in the next version. :D

In next version (maybe):
- A little gang system for "capturable zones"
- Hungarian part

Ideas! I need ideas! :'(

ReX
06/01/2008, 10:21 AM
Lol U made everything :D

:mrgreen: :mrgreen: :mrgreen:

Kowalski
06/01/2008, 01:51 PM
Update: Version 0.5.1
- 2008/01/06 -


KowaZ.h

#1 Added basic gang system:

You can create your own gangs and set them zones. Very basic, but compatibily with the zones.

#2 Added 14 new functions:

K_CreateGang(name[], skinid, color);
K_DeleteGang(gangid);

Creating and deleting gangs easy.

K_SetPlayerInGang(playerid, gangid);
K_GetPlayerGangID(playerid);

Setting and getting player's gang.

K_SetGangName(gangid, name[]);
K_ReturnGangName(gangid);

Setting and getting gang's name.

K_SetGangSkin(gangid, skinid);
K_GetGangSkin(gangid);

Setting and getting gang's skin.

K_SetGangColor(gangid, color);
K_GetGangColor(gangid);

Setting and getting gang's color.

K_IsGangValid(gangid);
K_IsGangActive(gangid);

Checking for validity and activity.

K_SetZoneGang(zoneid, gangid);
K_GetZoneGang(zoneid);

Setting and geting zone's currently gang.

#3 Added 2 new callbacks:

OnPlayerJoinGang(playerid, gangid);
Called when a player join in a gang.

OnPlayerLeaveGang(playerid, gangid);
Called when a player leaves a gang.

#4 Fixed Interior bugs.

#5 Advenced saving and loading system:

Now the zones get a new feature: gang. This is possible to save, so I made it. The system saves the gangs of the zones.


kow051.pwn

#1 Added gang commands and advenced zone command:

Now you can create gangs easy, just a command. I made 3 command only, but it's enough for this filterscript.

#2 Added 5 more commands:

/agang create [name]
Creates a new gang with the name.

/agang delete [gangid]
Deletes a gang.

/agang skinid [gangid] [skinid]
Sets the gang's skin.

/agang join [gangid] [playerid]
Sets the player in the gang.

/azone gang [zoneid] [gangid]
Sets the gang for the zone.

#2 Advenced display system:

If you enter in the zone and the zone has an owner (gang), the gang's name will display too.
Screenshot:
http://www.muszakihiba.hu/kowaz/Zone/img.jpg


Download:

In This pack: gangs and zones.
Scroll up to the main post or download it here:

The KowaZ Project v0.5.1 (http://www.muszakihiba.hu/kowaz/Zone/kowaz051.zip)


Next Version:

- basic gangwar system
- advenced gang system


Hope you like the newest version! :D


Lol U made everything :D

:mrgreen: :mrgreen: :mrgreen:


Almost.. :P

EDIT: Link fixed.


Kowalski

Kowalski
06/01/2008, 02:09 PM
OMFD! I'm gonna download it!


Very very basic gang system, just creating, deleting, setting color, setting name, setting skin and set zone. In the next version will be a K_SaveGangsInFile() function ofcourse. :P

Gangwars will be basic.. but first I need to make an another function.. see in the next version. 8)

Ideas needed! :o

Chumillas
06/01/2008, 02:17 PM
Ideas needed! :o


Awesome script are u doing eh eh


One idea: /azonehelp to show up commands list InGame

Kowalski
06/01/2008, 02:22 PM
One idea: /azonehelp to show up commands list InGame


Thank you for this great idea.
Commands in next version:

RCON:
- /azone save [zoneid]

Anyone:
- /azonehelp
- /myzone
- /zoneinfo [zoneid]

jesse989898
06/01/2008, 03:44 PM
will the gang's and members be stored in a file?
or just within the script until next restart?

OMFG it just keeps getting better :D

[18SG]SmokeY
06/01/2008, 03:56 PM
I get this warnings when i try to compile

C:\PROGRA~1\ROCKST~1\GRANDT~1\SAMP\GAMEMO~1\penls. pwn(19489) : warning 203: symbol is never used: "KZP_OnGameModeInit"
C:\PROGRA~1\ROCKST~1\GRANDT~1\SAMP\GAMEMO~1\penls. pwn(19489) : warning 203: symbol is never used: "KZP_OnPlayerInteriorChange"
C:\PROGRA~1\ROCKST~1\GRANDT~1\SAMP\GAMEMO~1\penls. pwn(19489) : warning 203: symbol is never used: "KZP_OnPlayerSpawn"

someone know how to fix ?

Kowalski
06/01/2008, 04:10 PM
SmokeY ]
I get this warnings when i try to compile

C:\PROGRA~1\ROCKST~1\GRANDT~1\SAMP\GAMEMO~1\penls. pwn(19489) : warning 203: symbol is never used: "KZP_OnGameModeInit"
C:\PROGRA~1\ROCKST~1\GRANDT~1\SAMP\GAMEMO~1\penls. pwn(19489) : warning 203: symbol is never used: "KZP_OnPlayerInteriorChange"
C:\PROGRA~1\ROCKST~1\GRANDT~1\SAMP\GAMEMO~1\penls. pwn(19489) : warning 203: symbol is never used: "KZP_OnPlayerSpawn"

someone know how to fix ?


Add the KZP_OnGameModeInit function to the OnGameModeInit callback.
Add the KZP_OnPlayerSpawn function to the OnPlayerSpawn callback.
Add the KZP_OnPlayerInteriorChange function to the OnPlayerInteriorChange callback.

And the script will work. :)


will the gang's and members be stored in a file?
or just within the script until next restart?

OMFG it just keeps getting better :D


The gangs will be stored in file in the next release with some extras. :D

Ideas needed!


Kowalski

[18SG]SmokeY
06/01/2008, 04:24 PM
how i do this, pls can somebody tell me step by step what i have to do, pls i really wanna use this

[18SG]SmokeY
06/01/2008, 04:28 PM
man sry but i i really wanna do this, where can i find the callbacks

Kowalski
06/01/2008, 04:30 PM
Okay, I tell you how to paste them only one time!


public OnGameModeInit() //<-- callback
{
KZP_OnGameModeInit();
.....
}

public OnPlayerSpawn(playerid) //<-- callback
{
KZP_OnPlayerSpawn(playerid);
.....
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) //<-- callback
{
KZP_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid);
.....
}


If you don't understand this, I can't help you.

[18SG]SmokeY
06/01/2008, 04:44 PM
thx ;)

ReX
06/01/2008, 06:09 PM
Very very very very.. nice :D

jesse989898
07/01/2008, 03:03 AM
idea:
could you lock class's to the gangs?

Link broken!! PLZ can someone send me a working link? cause im not sure s/he wants mirrors

EDIT: ignore me, like on main page is working, just link on this page is wrong

El0vric
07/01/2008, 10:38 AM
Good work Kowalski, your work is nice.

maxing
07/01/2008, 09:15 PM
Till now the Hungarians bad script I considered it authors, but I was disappointed pleasant now!
One of these one best Zonec script the forum! Congratulate once more! Let Hungary live :)

;)

Kowalski
08/01/2008, 05:26 PM
I'm super busy now (guess why.. school), I'll update my project when I can.

KowaZ.h

#1 Added K_SaveGangsInFile() and K_LoadGangFromFile() functions

#2 Look in the file, you'll see easier to find anything :D

#3 Taken out GangWar functions():

I made about 6 functions, but the test wasn't too good.

Download

The KowaZ Project v0.5.2 (http://www.muszakihiba.hu/kowaz/Zone/kowaz052.zip)


In the next release:
- An example gamemode howto use the KowaZ.h include.
- Basic vehicle System


Kowalski

jesse989898
08/01/2008, 09:59 PM
school :(
hehehhe im still on holidays :P still got about 3 weeks
Nice work once again kowalski its sooo close to being done :) i think

kidx
15/01/2008, 06:02 AM
how do I resize the zone i have version 2.2 ok please help would be great I like the zone make so if you can help out i would be verry happy.

catcats
15/01/2008, 07:32 AM
Excellent work, but excuse me... that to do with this?

P.S.
Excuse me for my english

fatal error 100: cannot read from file: "kowaz.h"

[LDT]LuxurY
15/01/2008, 08:51 AM
Excellent work, but excuse me... that to do with this?

P.S.
Excuse me for my english

fatal error 100: cannot read from file: "kowaz.h"

put "kowaz.h" in the directory .../server/pawno/includes

kidx
15/01/2008, 09:38 AM
I still dont know how to rezize a gang zone with 2.2 i need help please any one know.

catcats
15/01/2008, 11:09 AM
LuxurY ]

Excellent work, but excuse me... that to do with this?

P.S.
Excuse me for my english

fatal error 100: cannot read from file: "kowaz.h"

put "kowaz.h" in the directory .../server/pawno/includes


You think that I foolish? No, no, no... :s

Certainly I inserted in this directory "kowaz.h", but this problem.
I did not become to assign the foolish questions here.

I tried the different variants. Can be a conflict with the other file?

Please, help to understand.
I in principal interesting in than problem.

[LDT]LuxurY
15/01/2008, 11:13 AM
LuxurY ]

Excellent work, but excuse me... that to do with this?

P.S.
Excuse me for my english

fatal error 100: cannot read from file: "kowaz.h"

put "kowaz.h" in the directory .../server/pawno/includes


You think that I foolish? No, no, no... :s

Certainly I inserted in this directory "kowaz.h", but this problem.
I did not become to assign the foolish questions here.

I tried the different variants. Can be a conflict with the other file?

Please, help to understand.
I in principal interesting in than problem.


try it to rename to kowazh.inc
and #include <kowazh>

also are you sure that you put file in the reques folder may be you got 2 servers?

catcats
15/01/2008, 01:05 PM
LuxurY ]

LuxurY ]

Excellent work, but excuse me... that to do with this?

P.S.
Excuse me for my english

fatal error 100: cannot read from file: "kowaz.h"

put "kowaz.h" in the directory .../server/pawno/includes


You think that I foolish? No, no, no... :s

Certainly I inserted in this directory "kowaz.h", but this problem.
I did not become to assign the foolish questions here.

I tried the different variants. Can be a conflict with the other file?

Please, help to understand.
I in principal interesting in than problem.


try it to rename to kowazh.inc
and #include <kowazh>

also are you sure that you put file in the reques folder may be you got 2 servers?


I thought that will much more simply, but turned out to be else worse. :)
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(18) : error 017: undefined symbol "KZZone_OnGameModeInit"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(41) : error 017: undefined symbol "KZZone_OnPlayerConnect"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(55) : error 017: undefined symbol "K_IsZoneLocked"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(87) : error 017: undefined symbol "strtok"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(87) : error 033: array must be indexed (variable "cmd")
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(95) : error 017: undefined symbol "strtok"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(95) : error 033: array must be indexed (variable "tmp")
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(139) : error 017: undefined symbol "strtok"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(139) : error 033: array must be indexed (variable "tmp")
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(160) : error 017: undefined symbol "strtok"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(160) : error 033: array must be indexed (variable "tmp")
I have defined "strok"... following...
D:\SAMP~2\SAN_FI~1\V022IN~1\FILTER~1\KOWZON~1.PWN( 18) : error 017: undefined symbol "KZZone_OnGameModeInit"
D:\SAMP~2\SAN_FI~1\V022IN~1\FILTER~1\KOWZON~1.PWN( 41) : error 017: undefined symbol "KZZone_OnPlayerConnect"
D:\SAMP~2\SAN_FI~1\V022IN~1\FILTER~1\KOWZON~1.PWN( 55) : error 017: undefined symbol "K_IsZoneLocked"
D:\SAMP~2\SAN_FI~1\V022IN~1\FILTER~1\KOWZON~1.PWN( 323) : error 017: undefined symbol "K_IsZoneFlash"
D:\SAMP~2\SAN_FI~1\V022IN~1\FILTER~1\KOWZON~1.PWN( 349) : error 017: undefined symbol "K_IsZoneVisible"
D:\SAMP~2\SAN_FI~1\V022IN~1\FILTER~1\KOWZON~1.PWN( 367) : warning 203: symbol is never used: "KZP_OnGameModeInit"
D:\SAMP~2\SAN_FI~1\V022IN~1\FILTER~1\KOWZON~1.PWN( 367) : warning 203: symbol is never used: "KZP_OnPlayerInteriorChange"
D:\SAMP~2\SAN_FI~1\V022IN~1\FILTER~1\KOWZON~1.PWN( 367) : warning 203: symbol is never used: "KZP_OnPlayerSpawn"

\SAN_FIERRO\V022 in San Fierro\pawno\include\kowazh.inc(78) : error 017: undefined symbol "KOWAZ_PLAYER_ZONE_ENUM"
\SAN_FIERRO\V022 in San Fierro\pawno\include\kowazh.inc(78) : error 009: invalid array size (negative, zero or out of bounds)
\SAN_FIERRO\V022 in San Fierro\pawno\include\kowazh.inc(1270) : error 017: undefined symbol "KOWAZ_PLAYER_ZONE_ID"
\SAN_FIERRO\V022 in San Fierro\pawno\include\kowazh.inc(1278) : error 017: undefined symbol "KOWAZ_PLAYER_ZONE_ID"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(55) : error 017: undefined symbol "K_IsZoneLocked"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(323) : error 017: undefined symbol "K_IsZoneFlash"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(349) : error 017: undefined symbol "K_IsZoneVisible"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(367) : warning 203: symbol is never used: "KZP_OnGameModeInit"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(367) : warning 203: symbol is never used: "KZP_OnPlayerInteriorChange"
\SAN_FIERRO\V022 in San Fierro\filterscripts\kowzonehand022.pwn(367) : warning 203: symbol is never used: "KZP_OnPlayerSpawn"

I do not understand whole this. :lol:

see Today not my day. :roll: :|

kidx
15/01/2008, 01:10 PM
how you change a gang zone color with kowazaki i need help lol

oTTo
20/01/2008, 06:03 PM
awesome script ty very much Kowalski.. I will added ls-parachute for test. /azone commands work. /agang commands dont work. I dont understand how i add Callbacks:

OnPlayerEnterZone(playerid, zoneid)
Called when a player entered in a zone.

OnPlayerLeaveZone(playerid, zoneid)
Called when a player left in a zone.

OnPlayerJoinGang(playerid, gangid)
Called when a player joins a gang.

OnPlayerLeaveGang(playerid, gangid)
Called when a player leaves a gang.

Pls add callbacks and i see.. sry for my english. ty already now.

http://pastebin.com/m7b1a7889

$$$PiMp
01/02/2008, 04:48 PM
Hey i am trying to make your zone have wars and everything works except 1 thing when they die the zones don't flash :(

take a look at my "OnPlayerDeathScript" script here (http://money.pimps.fucked.up.pastebin.com/d4305d780)

$$$PiMp
02/02/2008, 07:17 AM
Does anyone want to help me -_- this is really important!

-Thanks

$$$PiMp
19/02/2008, 08:43 PM
Isnt anyone able to help me, this is an integral part of my script which i have been trying to fix for a long time!

Kowalski
21/02/2008, 11:18 AM
Okay, I returned after school.

Now the next version of my script is here.
I rewrote the whole script, now only supports the zone part, but it's better now.

Check out the website:
Zone Include website(okay version) (http://www.muszakihiba.hu/kowaz/webGTA/webgta.html#)


More updates soon!

Kowalski

$$$PiMp
21/02/2008, 09:54 PM
NICE!
This one is much less confusing without that gang stuff conflicting with my gang system :D
Can you add the zone saving back, and can you help me out with zone wars

Thanks a million,
Allan(MoNeYPiMp)

Kowalski
22/02/2008, 03:49 PM
Saving, loading will be back with a some extras.
It'll be a surprise. ;)

I hope I can finish the next version today or tomorrow.
So next release will contain:
saving, loading
forbinden vehicles
welcome message
try to fix the disallowed weapons bug
try to fix the spawning bug

What's spawning bug?
If you spawn in a locked zone, the server will teleport you to the middle of the game (0.0, 0.0, 0.0).
In the next release I'll try to fix this with a non-blocking, when player spawns in a zone.

What's disallowed weapons bug?
If your weapons are disallowed in the zone, and the zone is very near to an another zone and you run in-out as fast you can, your weapons won't return. This would be fixed somehow (another timers).

EDIT:

New version released! version 2.1:
saving, loading
spawning bug

You can save now 3 more things. Just with the SetZoneNote().
Usefull for saving (for example) the zone's gang.

Check out the website:
Zone Include website (http://www.muszakihiba.hu/kowaz/webGTA/webgta.html#)


Kowalski

$$$PiMp
23/02/2008, 07:34 AM
Thanx allot, i hope you fix the weapon bug as i have been removing the weapons thing since the first release, i hope you can do zone wars :)

Nice,
Allan(MoNeYPiMp)

Kowalski
23/02/2008, 08:04 AM
I'll release an example gamemode with wars.

Short Description:
4 teams, each start with one zone. If you kill 3 enemy gang members in their territory, the war will start.
If you're in the gang who attacked the zone or you're in the gang who's zone is attacked, next time you die - spawn on the zone. The gang who kills 10 enemies win. The other gang members can't enter in the zone, if the war is in progress. The zone color will be the winner's color.

I made gang functions, but I won't release them now.

$$$PiMp
23/02/2008, 09:15 AM
excellent, but is it using the players team or the players "gang" to have wars.

I cant wait for your next big release :)

Thank You,
Allan(MoNeYPiMp)

$$$PiMp
27/02/2008, 05:29 PM
what's taking ya soo long :P I am so excited i will finally have zone wars :D

[RSD]Jan
19/03/2008, 07:56 PM
Hallo,

I've a problem:

I putted zones in my game, but that it wanted it put them in Textdraw. I know that EnableZoneNames function exists, but my gamemode has functions equivalents the zones, however i cannot takes off wanted them places as "TEXTDRAW" they are as GameTextForPlayer.

;)

thanks

$$$PiMp
05/04/2008, 06:34 AM
Hey kowalski, are you nearly done with the new version of the gang zones?

Zh3r0
05/04/2008, 07:48 AM
Dude nice work ;)

ALEXALEX303
28/04/2008, 06:47 PM
If you lock a zone you can`t enter it or what?

.:MikeX:.
29/04/2008, 06:10 AM
@Kowalski

In the new version can you make FS.

and in that FS can u make that you can conquer the zones :mrgreen: ?

$$$PiMp
29/04/2008, 08:16 AM
@Kowalski

In the new version can you make FS.

and in that FS can u make that you can conquer the zones :mrgreen: ?

He already said he will make it conquerable for future releases ^^

.:MikeX:.
29/04/2008, 08:21 AM
MoNeYPiMp░▒▓███ ]

@Kowalski

In the new version can you make FS.

and in that FS can u make that you can conquer the zones :mrgreen: ?

He already said he will make it conquerable for future releases ^^


Yeah ok ^^ 8)

Shell
22/10/2008, 02:54 PM
K_GetZoneColor(zoneid);

how can i make it that it checks the zonecolor of the zone where the "playerid" is in.

thanks in advance

Katie
07/11/2008, 07:11 PM
xD You need to allow us to set the color of a zone sort of like:

/azone color (Color such as red, gray, purple, blue, cyan, green, etc) and then the zone id.

Kowalski
07/11/2008, 07:54 PM
I'm sorry, but I stopped the development of this script... about 8 months ago...

Now I'm back, but I'm working now with C++, so maybe I'll release a plugin version of the script (for Windows only) and the modified version of the current include file (for Linux servers).

I've learnt a lots of new things, e.g: using of the bit operators or the "plugin-creating". I'll try to give you a much better version of this project and more features, that I found possible now.


Ковалски

Drew_Connolly
07/11/2008, 07:56 PM
Can't wait, very cool

Kowalski
08/11/2008, 12:13 PM
UPDATE


I updated my first post. The newest v1.0 is now downloadable! It contains now:

KZI.inc - the function library for gangs and zones

kzi-handler.amx - ths filterscript provides you the easy handling or the zones
kzi-handler.pwn - the source of the KZI HANDLER

gangwar.amx - this is an example gangwar gamemode based on KZI
gangwar.pwn - the source of the gangwar mode

I hope you'll like it. ;)

Ковалски

$$$PiMp
17/11/2008, 03:59 PM
nice release Kovalski, this is something i waited for a year to have and i dont script anymore so its a shame i could have this while i still knew how to script :(

Kowalski
17/11/2008, 06:47 PM
I'am so sorry, but I stopped Pawn scripting and moved to webdevelopment and C++. Few weeks ago I saw that the topic is active after 9 months too, and I decided to finish the project. Unfortunetly I was too late. :-[

I got permission from Y_Less to use his time-related gangwar system in the future releases.

Ковалски

$$$PiMp
14/01/2009, 04:25 PM
hey i have continued to script my gamemode for a few days now and it looks great with your new gang war system :D
i am gratefull you took the effort to finish the kowaz zone project :D

Thank You,
Allan(MoNeYPiMp)

Kowalski
14/01/2009, 06:04 PM
hey i have continued to script my gamemode for a few days now and it looks great with your new gang war system :D
i am gratefull you took the effort to finish the kowaz zone project :D

Thank You,
Allan(MoNeYPiMp)


I've continued the project and I made a small plugin that gives you a lot of freedom. I had an idea from Y_Less's YSI plugin. He uses "pools" for group the zones (and objects, etc.). With this plugin you can create single zones and put them in different pools. With this the handling of the system is a bit harder, but this is a very useful thing. Unfortunetly the plugin is full with bugs at the moment and I have to fix them. There's no gang or gangwar system, but I'm working on them too.


http://www.kowaz.hu/index.php?a=1&b=1
If you want to download an untested version of the plugin visit this website and click on the download link on the bottom of the page. It has now a new name: SAMP Zone System (SZS). If I'll have time to rewrite the engine of my website, I'll make it on english language too (and not just hungarian). Why the plugin is "untested"? That's not true, but I havn't tested it myself (I don't have SA:MP).

This plugin won the Best Hungarian Development of 2008 Award (after the votes on a hungarian sa-mp forum) and it's not ready yet! ;)

Ковалски

$$$PiMp
15/01/2009, 11:41 AM
nice, i wish you luck with your plugins, however i think that the current zone system with wars is sufficient for my use :D

Are you hungarian, i thought your russian because your name is spelt in russian font :P (Kovalski) :P
I am serb so i can read it :P

63Sylvain
08/02/2009, 02:01 PM
Is there a version for windows ?

Matthew_Murdoch
19/09/2009, 01:29 PM
My apologies. I really need this and link is dead. Reupload?

asteroid
25/10/2009, 01:06 PM
Rehost please

.:HustLeR:.
24/03/2010, 06:50 PM
hmm can anybody say where the link for the gangwars.pwn is ?

Medal Of Honor team
22/03/2011, 12:26 PM
really awesome!

serman
22/03/2011, 12:42 PM
Awesome ! :D

Sharp11422
22/03/2011, 04:18 PM
Great..

DwayneVanKom
20/10/2012, 06:07 AM
File doesn't exist :v Gimme Fixed link please