[Include] [INC] Simple Zones v1.0
#1

Simple Zones

By: FreshKilla

This is a script for the original GangZones for SA-MP, But this one is more unique, Basicly its kind of a Starter tool kit for a Gang Wars server with Takeover turfs, And it could be useful for anything else, Zones have names,colors and callback to find which zone your in if your even in one.
Callbacks:

Код:
forward GangZoneCreateEx(ID, color, name[], Float:minx, Float:miny, Float:maxx, Float:maxy);
You would place this Code in OnGameModeInit/OnFilterScriptInit.

Example:
pawn Код:
GangZoneCreateEx(0, 0x80008096, "Glen Park", 1839.726, -1267.349, 2071.699, -1129.178);
Код:
forward GangZoneDestroyEx(ID);
Replace GangZoneDestroy with this.

Код:
forward GangZoneFlash(ID,flashcolor,seconds);
You can flash a zone for an amount of Seconds and for flashcolor if you leave it to "defcolor" it will flash default red.

Код:
forward OnFlashEnd(ID);
Callback when the turf is done flashing.

Код:
forward IsPlayerInTurf(playerid,id);
Checks if the playerid is in that turf.

Код:
forward OnTurfInit();
Place this in OnGameModeInit/OnFilterScriptInit.

Код:
forward OnTurfConnect(playerid);
Place this under OnPlayerConnect

The download includes a Filterscript which includes some commands and idea's that might help you.

Download:
http://files.uploadffs.com/3/0a8e3daf/SimpleZones.zip

Bugs:
I havent found any bugs but if you have any bugs or questions leave a reply.

Reply


Messages In This Thread
[INC] Simple Zones v1.0 - by FreshKilla - 20.11.2009, 21:43
Re: [INC] Simple Zones v1.0 - by Luka P. - 20.11.2009, 21:45
Re: [INC] Simple Zones v1.0 - by Mr187 - 20.11.2009, 21:53
Re: [INC] Simple Zones v1.0 - by Benne - 20.11.2009, 23:22
Re: [INC] Simple Zones v1.0 - by V1ceC1ty - 21.11.2009, 03:23
Re: [INC] Simple Zones v1.0 - by JustinSton - 21.11.2009, 15:41
Re: [INC] Simple Zones v1.0 - by deather - 05.06.2010, 12:33
Re: [INC] Simple Zones v1.0 - by Shadow_ - 05.06.2010, 13:38
Re: [INC] Simple Zones v1.0 - by Evoturk - 05.06.2010, 19:14
Re: [INC] Simple Zones v1.0 - by deather - 06.06.2010, 17:02

Forum Jump:


Users browsing this thread: 3 Guest(s)