[INC] Luxor clock -
Correlli - 06.09.2012
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:
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);
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:
pawn Код:
new
gClock;
gClock = CreateLuxorClock(1, 1510.0, 1320.0, 10.0, 20);
DestroyLuxorClock
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);
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:
pawn Код:
if(IsLuxorClockCreated(gClock)) printf("Luxor clock is created.");
else printf("Luxor clock is NOT created.");
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:
pawn Код:
SetLuxorClockTime(gClock, 22);
Defines:
pawn Код:
#define MAX_LUXOR_CLOCKS (3)
MAX_LUXOR_CLOCKS - The maximum amount of luxor clocks allowed for script to load on the server.
Download:
http://www.solidfiles.com/d/4641e84c71
Re: [INC] Luxor clock -
Gforcez - 06.09.2012
Looks great! Good job!
Re: [INC] Luxor clock -
Niko_boy - 06.09.2012
OMG
this IS EPIC O:
AND WONDERFLAWLESSEXY &
Original
Respuesta: [INC] Luxor clock -
adrianxd - 06.09.2012
Awesome very very GOOOOOOOOOOOOOOOOOOOOOOD :P
Re: [INC] Luxor clock -
Kaperstone - 10.09.2012
Unqiue,awesome idea.
Re: [INC] Luxor clock -
Maxips2 - 10.09.2012
Mind posting some screenshots?
Re: [INC] Luxor clock -
Correlli - 10.09.2012
Quote:
Originally Posted by Maxips2
Mind posting some screenshots?
|
No, you have the video in the first post.
Re: [INC] Luxor clock -
Maxips2 - 10.09.2012
Oh sorry I did not notice, however nice work
Re: [INC] Luxor clock -
Sniper Kitty - 10.09.2012
For a second I thought you meant the clock that tells the time from the position of the sun.
Only because I don't know the name of that clock.
Re: [INC] Luxor clock -
[rG]Cold - 10.09.2012
Awesome work. Is it possible to make it "Hang" on a bigger building not only on flat land?