[INC] LGZ 1.3.2 [REL: 11 Jan 2008] | Let's capture the zone! -
[LDT]LuxurY - 04.01.2008
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.0 - 1.1
alpha version
|
Cheers, LuxurY. :P
Re: [INC] LGZ 1.2b | Let's capture the zone! -
Alejandro - 04.01.2008
wow this is excellent!
Re: [INC] LGZ 1.2b | Let's capture the zone! -
El0vric - 04.01.2008
Good work, i like your work.
Re: [INC] LGZ 1.2b | Let's capture the zone! -
Grove - 04.01.2008
wow, Nice!
Re: [INC] LGZ 1.2b | Let's capture the zone! -
[LDT]LuxurY - 04.01.2008
thx. so no bugs?
Re: [INC] LGZ 1.2b | Let's capture the zone! -
ReX - 04.01.2008
Amazing!
Re: [INC] LGZ 1.2b | Let's capture the zone! -
[LDT]LuxurY - 04.01.2008
why only a few posts?
may be mirror?
Re: [INC] LGZ 1.2b | Let's capture the zone! -
Alejandro - 04.01.2008
Mirror
Re: [INC] LGZ 1.2b | Let's capture the zone! -
snipe69 - 04.01.2008
wow really nice
Re: [INC] LGZ 1.2b | Let's capture the zone! -
MaTrIx4057 - 04.01.2008
Thats so nice!!!
Re: [INC] LGZ 1.2b | Let's capture the zone! -
jesse989898 - 05.01.2008
Thanks, nice script
Re: [INC] LGZ 1.2b | Let's capture the zone! -
[LDT]LuxurY - 05.01.2008
Quote:
Originally Posted by Alejandro
|
thanks
now 4 mirrors :P
Re: [INC] LGZ 1.2b | Let's capture the zone! -
Grove - 05.01.2008
Man this owns, Im working on a Hydra/Hunter Gang zone system, and so far not found any bugs
Re: [INC] LGZ 1.2b | Let's capture the zone! -
[LDT]LuxurY - 06.01.2008
Quote:
Originally Posted by Grove
Man this owns, Im working on a Hydra/Hunter Gang zone system, and so far not found any bugs
|
cool
Re: [INC] LGZ 1.3b | Let's capture the zone! -
[LDT]LuxurY - 08.01.2008
Huge update!
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()
|
See 1th post
Re: [INC] LGZ 1.3b | Let's capture the zone! -
P1nd3r - 08.01.2008
nice
Re: [INC] LGZ 1.3b | Let's capture the zone! -
[LDT]LuxurY - 08.01.2008
What I must add?
Give ideas
Re: [INC] LGZ 1.3.2b | Let's capture the zone! -
[LDT]LuxurY - 11.01.2008
Update:
new version: 1.3.2
see 1th post
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);
|
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! -
dam - 17.01.2008
Hmm..... I am glad that Russian too can to put forward the works abroad =)
Re: [INC] LGZ 1.3.2b [REL: 11 Jan 2008] | Let's capture the zone! -
cerealnp - 18.01.2008
Very nice =D
Thx