Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- +++++++ ++++++ +++ +++ ++ ++
- +++ + ++ + + + + + +
- ++ ++++++ +++ +++ + +
- */
- #include <a_samp>
- #define FILTERSCRIPT
- new Text3D:ceas;
- new string[512],hours,minutes,seconds;
- forward settime(playerid);
- public OnFilterScriptInit()
- {
- SetTimer("settime",1000,true);
- Update3DTextLabelText(ceas, 0xffffffff,string);
- return 1;
- }
- public OnFilterScriptExit()
- {
- Update3DTextLabelText(ceas, 0xffffffff,string);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Update3DTextLabelText(ceas, 0xffffffff,string);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- Update3DTextLabelText(ceas, 0xffffffff,string);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- Update3DTextLabelText(ceas, 0xffffffff,string);
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- Update3DTextLabelText(ceas, 0xffffffff,string);
- return 1;
- }
- public settime(playerid)
- {
- format(string, sizeof string,"{00C0FF}Clock{FFAF00}By {F81414}Teddy\n{00C0FF}%s%d {F300FF}: {FFAF00}%s%d {F300FF}: {F81414}%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
- gettime(hours, minutes, seconds);
- ceas = Create3DTextLabel(string,0xffffffff,895.0890, -1101.9412, 35.5424,200.0,0);
- Update3DTextLabelText(ceas, 0xffffffff,string);
- }
Advertisement
Add Comment
Please, Sign In to add comment