Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- /*
- ETO VAM PA AKO SLUZI JEBAJGA AKO NE :DD SRECNO ( SANEL SAMPER ON FB )))
- */
- #define FILTERSCRIPT
- new Text:SANELVREME, Text:SANELTD;
- forward VremeTimer(playerid);
- public VremeTimer(playerid)
- {
- new string[128],godina,mjesec,dan,sati,minute;
- getdate(godina, mjesec, dan), gettime(sati, minute);
- format(string, sizeof string, "%d/%s%d/%s%d", dan, ((mjesec < 10) ? ("0") : ("")), mjesec, (godina < 10) ? ("0") : (""), godina);
- TextDrawSetString(SANELTD, string);
- format(string, sizeof string, "%s%d:%s%d", (sati < 10) ? ("0") : (""), sati, (minute < 10) ? ("0") : (""), minute);
- TextDrawSetString(SANELVREME, string);
- }
- public OnFilterScriptInit()
- {
- SANELVREME = TextDrawCreate(570.500000, 418.319976, "12:24:46");
- TextDrawLetterSize(SANELVREME, 0.284499, 1.207999);
- TextDrawAlignment(SANELVREME, 1);
- TextDrawColor(SANELVREME, 16777215);
- TextDrawSetShadow(SANELVREME, 0);
- TextDrawSetOutline(SANELVREME, 1);
- TextDrawBackgroundColor(SANELVREME, 51);
- TextDrawFont(SANELVREME, 3);
- TextDrawSetProportional(SANELVREME, 1);
- SetTimer("VremeTimer",1000,true);
- SANELTD = TextDrawCreate(565.500000, 432.320068, "12/12/2018");
- TextDrawLetterSize(SANELTD, 0.301999, 1.135200);
- TextDrawAlignment(SANELTD, 1);
- TextDrawColor(SANELTD, -1);
- TextDrawSetShadow(SANELTD, 0);
- TextDrawSetOutline(SANELTD, 1);
- TextDrawBackgroundColor(SANELTD, 51);
- TextDrawFont(SANELTD, 3);
- TextDrawSetProportional(SANELTD, 1);
- SetTimer("VremeTimer",1000,true);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, SANELVREME);
- TextDrawShowForPlayer(playerid, SANELTD);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- TextDrawHideForPlayer(playerid, SANELVREME);
- TextDrawHideForPlayer(playerid, SANELTD);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement