Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <core>
- #include <float>
- new glob0;
- new Text:glob4[137];
- new glob228;
- new glob22C;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Zaman Ve Tarih Sistemi Acilmistir ! By : Craxs");
- print("--------------------------------------\n");
- SetTimer("settime", 1000, true);
- glob4 = TextDrawCreate(576.2675, 13.8185, glob228);
- TextDrawLetterSize(glob4, 0.2759, 1.4091);
- TextDrawAlignment(glob4, 2);
- TextDrawColor(glob4, 0xFFFFFFFF);
- TextDrawSetShadow(glob4, 0);
- TextDrawSetOutline(glob4, 1);
- TextDrawBackgroundColor(glob4, 0x000000FF);
- TextDrawFont(glob4, 3);
- TextDrawSetProportional(glob4, true);
- TextDrawSetShadow(glob4, 0);
- glob0 = TextDrawCreate(576.4006, 25.0185, glob22C);
- TextDrawLetterSize(glob0, 0.5126, 2.5519);
- TextDrawAlignment(glob0, 2);
- TextDrawColor(glob0, 0xFFFFFFFF);
- TextDrawSetShadow(glob0, 0);
- TextDrawSetOutline(glob0, 1);
- TextDrawBackgroundColor(glob0, 0x000000FF);
- TextDrawFont(glob0, 3);
- TextDrawSetProportional(glob0, true);
- TextDrawSetShadow(glob0, 0);
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n-----------------------------------------------------");
- print(" Zaman Ve Tarih Sistemi Kapanmistir ! By : Craxs");
- print("-----------------------------------------------------/n");
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, glob4);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- TextDrawHideForPlayer(playerid, glob4);
- return 1;
- }
- public settime()
- {
- new var0[256], var1 = 0, var2 = 0, var3 = 0, var4 = 0, var5 = 0;
- gettime(var4, var5, 0);
- format(var0, 256, "%d/%s%d/%s%d", var3, (var2 < 10 ? 1252 : 1260), var2, (var1 < 10 ? 1264 : 1272), var1);
- TextDrawSetString(glob4, var0);
- format(var0, 256, "%s%d:%s%d", (var4 < 10 ? 1316 : 1324), var4, (var5 < 10 ? 1328 : 1336), var5);
- TextDrawSetString(glob0, var0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement