[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
#2

Nice
Reply
#3

Ha nice fresh posted up something new finally
Reply
#4

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

Looks nice
Reply
#6

cool
Reply
#7

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

Real nice Fresh I will use.
Reply
#9

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

Re-upload please!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)