06.09.2012, 15:05
What is this?
This is a clock created from luxor obelisk objects (72 objects for one clock).
Video:
https://*****.com/48954062
How to install?
It's easy and simple - download and put the luxorc.inc into the \pawno\include\ folder.
Open your script and put this:
right after the
Put the clocks in the OnGameModeInit callback.
Example:
These 2 clocks are located at the Las Venturas Airport. Here are the spawn coordinates:
Functions:
CreateLuxorClock
Creates the luxor clock.
@modelid = Model ID of the luxor clock.
@Float: x = Luxor clock X position.
@Float: y = Luxor clock Y position.
@Float: z = Luxor clock Z position.
@time = World time to set for the luxor clock (it's 12 by default).
returns the clock ID which starts with 0. If you exceed the MAX_LUXOR_CLOCKS define then it will return the invalid ID which is -1.
Example:
DestroyLuxorClock
Deletes the luxor clock.
@clockid = The ID of clock.
returns true if the clock is valid and false if it's not.
Example:
IsLuxorClockCreated
Checks if luxor clock is created.
@clockid = The ID of clock.
returns true if the clock is valid and false if it's not.
Example:
SetLuxorClockTime
Sets the new time for the luxor clock.
@clockid = The ID of clock.
@time = The new time to set for the luxor clock.
returns true if the clock is valid and false if it's not or if the time is invalid (valid time is from 0 to 24).
Example:
Defines:
MAX_LUXOR_CLOCKS - The maximum amount of luxor clocks allowed for script to load on the server.
Download:
http://www.solidfiles.com/d/4641e84c71
This is a clock created from luxor obelisk objects (72 objects for one clock).
Video:
https://*****.com/48954062
How to install?
It's easy and simple - download and put the luxorc.inc into the \pawno\include\ folder.
Open your script and put this:
pawn Код:
#include <luxorc>
pawn Код:
#include <a_samp>
Example:
pawn Код:
new
gClock[2];
gClock[0] = CreateLuxorClock(1, 1510.0, 1320.0, 10.0, 20);
gClock[1] = CreateLuxorClock(2, 1430.0, 1350.0, 70.0, 15);
pawn Код:
1430.0, 1350.0, 10.0
Functions:
CreateLuxorClock
Creates the luxor clock.
@modelid = Model ID of the luxor clock.
@Float: x = Luxor clock X position.
@Float: y = Luxor clock Y position.
@Float: z = Luxor clock Z position.
@time = World time to set for the luxor clock (it's 12 by default).
returns the clock ID which starts with 0. If you exceed the MAX_LUXOR_CLOCKS define then it will return the invalid ID which is -1.
Example:
pawn Код:
new
gClock;
gClock = CreateLuxorClock(1, 1510.0, 1320.0, 10.0, 20);
Deletes the luxor clock.
@clockid = The ID of clock.
returns true if the clock is valid and false if it's not.
Example:
pawn Код:
DestroyLuxorClock(gClock);
Checks if luxor clock is created.
@clockid = The ID of clock.
returns true if the clock is valid and false if it's not.
Example:
pawn Код:
if(IsLuxorClockCreated(gClock)) printf("Luxor clock is created.");
else printf("Luxor clock is NOT created.");
Sets the new time for the luxor clock.
@clockid = The ID of clock.
@time = The new time to set for the luxor clock.
returns true if the clock is valid and false if it's not or if the time is invalid (valid time is from 0 to 24).
Example:
pawn Код:
SetLuxorClockTime(gClock, 22);
Defines:
pawn Код:
#define MAX_LUXOR_CLOCKS (3)
Download:
http://www.solidfiles.com/d/4641e84c71