SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 04/01/2008, 10:03 AM   #1
[LDT]LuxurY
Huge Clucker
 
[LDT]LuxurY's Avatar
 
Join Date: Feb 2007
Location: Russian Federation, Orekhovo-Zyevo
Posts: 219
Reputation: 1
Default [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone!

LuxurY GangZones:

Title: LuxurY GangZones (LGZ)
Version: 1.3.2
Reliase: final
Date: 11 January 2008

This script helps us to make capturing system on your servers and make playerig more exciting and funny. So, it's the first beta of my script and I want you to report bags. So it's the short description:

Functions:

GZ_LoadLGZ();
Description: Uses for loading timers. Put it in OnGameModeInit

GZ_SetTrueGZOwner(playerid);
Description: Uses for setting true owner of the zone. Communication with nickname. Put it in OnPlayerConnect

GZ_DeleteZoneTemp(playerid);
Description: Uses for delete temp information about player. Put it in OnPlayerDisconnect

GZ_Create(name[],Float:minx,Float:miny,Float:maxx,Float:maxy,color )
Description: Create teh zone.
Return: id of created zone

GZ_Destroy(zoneid);
Description: Destroy the zone.

GZ_IsValidGZ(zoneid);
Description: Check if the zone exists or not.
Return: 0 if the zone doesn't exist, 1 if the zone exists

GZ_IsPlayerInGZ(playerid,zoneid);
Description: Check if the player is in this zone or not.
Return: 0 if false, 1 if true

GZ_IsPlayerInAnyGZ(playerid);
Description: Check if the player is in any zone or not.
Return: 0 if false, 1 if true

GZ_GetPlayerGZIn(playerid);
Return: id of player's current zone.

GZ_GetZoneInvader(zoneid);
Return: id of the player capturing the zone.

GZ_GetZoneOwner(zoneid);
Return: zone owner's id. (Only if the owner is online)

GZ_Capture(playerid,zoneid,time,color);
Description: Starts to capture the zone by the player. time in seconds. color - color of flashing

GZ_SetGZCaptureTime(zoneid,time);
Description: Sets capturing time of the zone. time in seconds.

GZ_GetGZCaptureTime(zoneid);
Return: capturing time of the zone

GZ_SetAllGZCaptureTime(time);
Description: Sets capturing time for all zones.

GZ_SetFree(zoneid);
Description: Makes the zone free.

GZ_StopCapture(zoneid);
Description: Stops capture the zone.

GZ_GetOwnerName(zoneid);
Return: zone owner's name. (Takes from the file)

GZ_IsGZInCapture(zoneid);
Description: Checks if the zone is in the capture or not.
Return: 0 if false, 1 if true

GZ_SetZoneCash(zoneid,cash);
Description: Sets the zone cash.

GZ_SetCashTime(time);
Description: Sets the cash time (in seconds)

GZ_GetCashTime();
Return: cash time in seconds

GZ_AllowMoneyGetting(allow);
Description: allow/disallow getting money from zones. 0 - disallow, 1 - allow

GZ_GetZoneCash(zoneid);
Return: cash of the zone.

GZ_AllowDebug(allow);
Description: Allow debugging. 0 - false 1 - true

GZ_SetLockLevelForPlayer(playerid,zoneid,locklevel );
Description: Sets zone lock level for player 0 - can't capture 1 - can't enter

GZ_GetAllLockLevel(zoneid);
Description: Returns zone lock level for all

GZ_GetPlayerLockLevel(playerid,zoneid);
Description: Returns zone lock level for player

GZ_SetZoneName(zoneid,name[]);
Description: Sets zone name

GZ_GetZoneName(zoneid);
Description: Returns zone name

GZ_SetLockLevelForAll(zoneid,locklevel);
Description: Sets zone lock level for all 0 - can't capture 1 - can't enter

GZ_SetZoneColor(zoneid,color);
Description: Sets zone color

GZ_GetZoneColor(zoneid);
Description: Returns zone color

GZ_RefreshZoneColor(zoneid);
Description: Refreshs zone color from file

GZ_SetZonePos(zoneid,Float:minx,Float:miny,Float:m axx,Float:maxy);
Description: Sets zone position

GZ_GetZonePos(zoneid,&Float:minx,&Float:miny,&Floa t:maxx,&Float:maxy);
Description: Returns zone posotion

GZ_IsVehicleInGZ(vehicleid,zoneid);
Description: Checks if the vehicle is in the zone or not. 0 - if false 1 - if true

GZ_IsVehicleInAnyGZ(vehicleid);
Description: Checks if the vehicle is in any zone or not. 0 - if false 1 - if true

GZ_IsAnyVehicleInGZ(zoneid);
Description: Checks if any vehicle is in the zone or not. 0 - if false 1 - if true

GZ_IsAnyPlayerInGZ(zoneid);
Description: Checks if any player is in the zone or not. 0 - if false 1 - if true

Callbacks:

GZ_OnPlayerEnter(playerid,zoneid);
Description: Calls when the player enter the zone.

GZ_OnPlayerLeave(playerid,zoneid);
Description: Calls when the player leave from the zone.

GZ_OnPlayerCapture(playerid,zoneid);
Description: Calls when the player captured the zone

GZ_OnPlayerGetMoney(playerid,amount);
Description: Calls when the player get money from his zones.

Example(GZ.amx) commands:

/zonecolor [zoneid] [colorid] - set zone color ( color 0 - 100 )
/zonepos [zoneid] [posid] - set zone position ( position 0 - 8 )
/checkvalid [zoneid] - checking zone
/getzone - capture current zone

Installation:

1. Put GZ_LoadLGZ(); in OnGameModeInit
2. Put GZ_SetTrueGZOwner(playerid); in OnPlayerConnect
3. Put GZ_DeleteZoneTemp(playerid); in OnPlayerDisconnect
4. Create folder LGZ in directory /scriptfiles
5. Put file LGZ.inc in directory /pawno/include

Download:

Last Version! Recommended for downloading v.1.3.2 (INC+Example(source+compiled))
1. GTAscript.ru
2. Sendspace.com
3. Rapidshare.com
4. Crazyhost


old v.1.3
1. GTAscript.ru
2. Sendspace.com

old v.1.2
1. GTAscript.ru
2. Alejandro's Mirror
3. Rapidshare.com
4. Sendspace.com

Uncluded: Russian and English versions. Example(Source+Compiled) + INC file + README

Changelog:

Quote:
v.1.3.2
fixed: lock level 2 zone status. Now it uses WorldBounds. Not killing.
added:
GZ_IsVehicleInGZ(vehicleid,zoneid);
GZ_IsVehicleInAnyGZ(vehicleid);
GZ_IsAnyVehicleInGZ(zoneid);
GZ_IsAnyPlayerInGZ(zoneid);
Quote:
v.1.3
added:
GZ_AllowDebug(allow);
GZ_SetLockLevelForPlayer(playerid,zoneid,locklevel );
GZ_GetAllLockLevel(zoneid);
GZ_GetPlayerLockLevel(playerid,zoneid);
GZ_SetZoneName(zoneid,name[]);
GZ_GetZoneName(zoneid);
GZ_SetLockLevelForAll(zoneid,locklevel);
GZ_SetZoneColor(zoneid,color);
GZ_GetZoneColor(zoneid);
GZ_RefreshZoneColor(zoneid);
GZ_SetZonePos(zoneid,Float:minx,Float:miny,Float:m axx,Float:maxy);
GZ_GetZonePos(zoneid,&Float:minx,&Float:miny,&Floa t:maxx,&Float:maxy);

fixed: some bugs with saving info, destroying zone, added main()
Quote:
v.1.2
public beta
Quote:
v.1.0 - 1.1
alpha version
Cheers, LuxurY. :P
[LDT]LuxurY is offline   Reply With Quote
Old 04/01/2008, 10:24 AM   #2
Alejandro
Huge Clucker
 
Join Date: May 2007
Posts: 336
Reputation: 1
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

wow this is excellent!
Alejandro is offline   Reply With Quote
Old 04/01/2008, 10:27 AM   #3
El0vric
Huge Clucker
 
Join Date: Nov 2006
Posts: 214
Reputation: 0
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

Good work, i like your work.
El0vric is offline   Reply With Quote
Old 04/01/2008, 10:30 AM   #4
Grove
Huge Clucker
 
Join Date: Jan 2007
Posts: 299
Reputation: 6
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

wow, Nice!
Grove is offline   Reply With Quote
Old 04/01/2008, 12:35 PM   #5
[LDT]LuxurY
Huge Clucker
 
[LDT]LuxurY's Avatar
 
Join Date: Feb 2007
Location: Russian Federation, Orekhovo-Zyevo
Posts: 219
Reputation: 1
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

thx. so no bugs?
[LDT]LuxurY is offline   Reply With Quote
Old 04/01/2008, 01:00 PM   #6
ReX
Little Clucker
 
Join Date: Dec 2007
Posts: 43
Reputation: 0
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

Amazing!
ReX is offline   Reply With Quote
Old 04/01/2008, 03:33 PM   #7
[LDT]LuxurY
Huge Clucker
 
[LDT]LuxurY's Avatar
 
Join Date: Feb 2007
Location: Russian Federation, Orekhovo-Zyevo
Posts: 219
Reputation: 1
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

why only a few posts?
may be mirror?
[LDT]LuxurY is offline   Reply With Quote
Old 04/01/2008, 07:45 PM   #8
Alejandro
Huge Clucker
 
Join Date: May 2007
Posts: 336
Reputation: 1
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

Mirror
Alejandro is offline   Reply With Quote
Old 04/01/2008, 07:50 PM   #9
snipe69
Huge Clucker
 
Join Date: Aug 2007
Posts: 231
Reputation: 1
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

wow really nice
snipe69 is offline   Reply With Quote
Old 04/01/2008, 07:51 PM   #10
MaTrIx4057
Huge Clucker
 
MaTrIx4057's Avatar
 
Join Date: Apr 2007
Posts: 462
Reputation: 23
Default Re: [INC] LGZ 1.2b | Let's capture the zone!

Thats so nice!!!
MaTrIx4057 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! Capture the point! Flake. Help Archive 7 07/02/2010 02:20 AM
[HELP] Capture the point Flake. Help Archive 2 06/02/2010 11:47 PM
Capture The Car? DeltaAirlines12 Help Archive 3 10/09/2009 11:50 PM


All times are GMT. The time now is 10:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.