[Include] [INC] Luxor clock
#1

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:
pawn Код:
#include <luxorc>
right after the
pawn Код:
#include <a_samp>
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:
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);
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
Reply
#2

Looks great! Good job!
Reply
#3

OMG
this IS EPIC O:
AND WONDERFLAWLESSEXY & Original
Reply
#4

Awesome very very GOOOOOOOOOOOOOOOOOOOOOOD :P
Reply
#5

Unqiue,awesome idea.
Reply
#6

Mind posting some screenshots?
Reply
#7

Quote:
Originally Posted by Maxips2
Посмотреть сообщение
Mind posting some screenshots?
No, you have the video in the first post.
Reply
#8

Oh sorry I did not notice, however nice work
Reply
#9

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.
Reply
#10

Awesome work. Is it possible to make it "Hang" on a bigger building not only on flat land?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)