[Include] s3Zone - Gang Zone Functions - 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] s3Zone - Gang Zone Functions (
/showthread.php?tid=321883)
s3Zone - Gang Zone Functions -
s3rious - 28.02.2012
s3Zone
Gang Zone Functions
As my second script i will present my gang zone functions. Very easy include featured by easy functions. This small script is useful for any TDM server. Is not any of huge, extreme script. Maybe something what make your scripting easier.
Version 1.2
Код:
- Fixed some mistakes
To correct render gangzones add this line to
OnPlayerConnect
pawn Код:
for (new i=0;i < s3Zone_g_GangZones; i++)
{
GangZoneShowForPlayer(playerid, s3Zone_g_Zone[ i ][ Zone_id ], s3Zone_g_Color[ GetGangZoneOwner(i) ]);
}
I paste here all functions related with this include:
pawn Код:
stock AddGangTeam(color);
stock CreateGangZone(Float:minx, Float:miny, Float:maxx, Float:maxy, s_Owner);
stock IsPlayerInGangZone(playerid, zoneid);
stock IsPlayerInAnyGangZone(playerid);
stock SetGangZoneFlash(FlashColor);
stock SetGangZoneOwnerTeam(zoneid, n_Owner);
stock GetPlayerGangZone(playerid);
stock GetGangZoneOwner(zoneid);
- In future i wanna make Extend Gang Zone System which will include Wars and all things around it.
Download:
Version 1.0:
http://pastebin.com/kKSvr32w
Version 1.2: http://pastebin.com/xajJscV8
Re: s3Zone - Gang Zone Functions -
TheArcher - 28.02.2012
Not bad. Still useful.
Re: s3Zone - Gang Zone Functions -
s3rious - 28.02.2012
Quote:
Originally Posted by TheArcher
Not bad. Still useful.
|
Yes, thanks. As i said. In future i will make gang system with War event.
Re: s3Zone - Gang Zone Functions -
Shadow_ - 28.02.2012
Nice.
Re: s3Zone - Gang Zone Functions -
bye - 03.08.2012
Nice