[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
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
![Smiley](images/smilies/smile.png)
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!!