SA-MP Forums Archive
[Include] [INC] Simple Zones v1.0 - 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] [INC] Simple Zones v1.0 (/showthread.php?tid=109539)



[INC] Simple Zones v1.0 - FreshKilla - 20.11.2009

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.




Re: [INC] Simple Zones v1.0 - Luka P. - 20.11.2009

Nice


Re: [INC] Simple Zones v1.0 - Mr187 - 20.11.2009

Ha nice fresh posted up something new finally


Re: [INC] Simple Zones v1.0 - Benne - 20.11.2009

Good work Freshi, I'm gonna try this so I can learn about these "map" functions if you can say it like that.


Re: [INC] Simple Zones v1.0 - V1ceC1ty - 21.11.2009

Looks nice


Re: [INC] Simple Zones v1.0 - JustinSton - 21.11.2009

cool


Re: [INC] Simple Zones v1.0 - deather - 05.06.2010

Can I take over zones with this. And can you re-upload it to another host.


Re: [INC] Simple Zones v1.0 - Shadow_ - 05.06.2010

Real nice Fresh I will use.


Re: [INC] Simple Zones v1.0 - Evoturk - 05.06.2010

I like is but link is dead :S Re-upload it please.


Re: [INC] Simple Zones v1.0 - deather - 06.06.2010

Re-upload please!!