[Include] [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone!
#1

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
Reply


Messages In This Thread
[INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by [LDT]LuxurY - 04.01.2008, 10:03
Re: [INC] LGZ 1.2b | Let's capture the zone! - by Alejandro - 04.01.2008, 10:24
Re: [INC] LGZ 1.2b | Let's capture the zone! - by El0vric - 04.01.2008, 10:27
Re: [INC] LGZ 1.2b | Let's capture the zone! - by Grove - 04.01.2008, 10:30
Re: [INC] LGZ 1.2b | Let's capture the zone! - by [LDT]LuxurY - 04.01.2008, 12:35
Re: [INC] LGZ 1.2b | Let's capture the zone! - by ReX - 04.01.2008, 13:00
Re: [INC] LGZ 1.2b | Let's capture the zone! - by [LDT]LuxurY - 04.01.2008, 15:33
Re: [INC] LGZ 1.2b | Let's capture the zone! - by Alejandro - 04.01.2008, 19:45
Re: [INC] LGZ 1.2b | Let's capture the zone! - by snipe69 - 04.01.2008, 19:50
Re: [INC] LGZ 1.2b | Let's capture the zone! - by MaTrIx4057 - 04.01.2008, 19:51
Re: [INC] LGZ 1.2b | Let's capture the zone! - by jesse989898 - 05.01.2008, 07:47
Re: [INC] LGZ 1.2b | Let's capture the zone! - by [LDT]LuxurY - 05.01.2008, 09:48
Re: [INC] LGZ 1.2b | Let's capture the zone! - by Grove - 05.01.2008, 18:34
Re: [INC] LGZ 1.2b | Let's capture the zone! - by [LDT]LuxurY - 06.01.2008, 10:17
Re: [INC] LGZ 1.3b | Let's capture the zone! - by [LDT]LuxurY - 08.01.2008, 14:09
Re: [INC] LGZ 1.3b | Let's capture the zone! - by P1nd3r - 08.01.2008, 14:54
Re: [INC] LGZ 1.3b | Let's capture the zone! - by [LDT]LuxurY - 08.01.2008, 16:10
Re: [INC] LGZ 1.3.2b | Let's capture the zone! - by [LDT]LuxurY - 11.01.2008, 11:48
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by dam - 17.01.2008, 12:53
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by cerealnp - 18.01.2008, 13:22
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by [LDT]LuxurY - 19.01.2008, 08:29
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by Grove - 19.01.2008, 10:08
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by jesse989898 - 19.01.2008, 12:42
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by [LDT]LuxurY - 19.01.2008, 13:29
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by Avatar - 20.01.2008, 15:46
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by Avatar - 20.01.2008, 16:59
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by [LDT]LuxurY - 21.01.2008, 10:15
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by jesse989898 - 21.01.2008, 11:42
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! - by Troll - 05.02.2008, 19:26
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by [LDT]LuxurY - 24.01.2010, 09:02
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by carmaster - 24.01.2010, 11:16
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by kingforyou - 19.03.2010, 10:53
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by leapfish - 19.03.2010, 12:53
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by asdfgh98 - 19.03.2010, 14:02
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by leapfish - 19.03.2010, 14:42
Re : [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by tonysbuc - 10.10.2010, 12:47
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by burnuk - 01.08.2012, 19:11
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by Sam Read - 22.09.2012, 03:27
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by [HK]Ryder[AN] - 22.09.2012, 05:14
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by Q_Lite - 22.09.2012, 05:51
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by MehranGta - 06.03.2013, 12:59
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by DaTa[X] - 08.03.2013, 03:29
Respuesta: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by Parka - 08.03.2013, 04:33
Re: [INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! - by iFear - 08.03.2013, 04:42

Forum Jump:


Users browsing this thread: 1 Guest(s)