Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <foreach>
- new Text:Sat;
- new Text:SatBox;
- forward Update();
- public Update()
- {
- new
- vrijeme[50],
- sati,
- minuta;
- gettime(sati, minuta);
- format(vrijeme,sizeof vrijeme,"SAT: %02d:%02d",sati,minuta);
- TextDrawSetString(Sat,vrijeme);
- SetWorldTime(sati);
- foreach(Player,i) {
- SetPlayerTime(i,sati,minuta); }
- }
- public OnFilterScriptInit()
- {
- SatBox = TextDrawCreate(611.000000, 101.000000, "|");
- TextDrawBackgroundColor(SatBox, 255);
- TextDrawFont(SatBox, 3);
- TextDrawLetterSize(SatBox, 0.000000, 2.200000);
- TextDrawColor(SatBox, 16777215);
- TextDrawSetOutline(SatBox, 0);
- TextDrawSetProportional(SatBox, 1);
- TextDrawSetShadow(SatBox, 1);
- TextDrawUseBox(SatBox, 1);
- TextDrawBoxColor(SatBox, 255);
- TextDrawTextSize(SatBox, 496.000000, 1.000000);
- Sat = TextDrawCreate(504.000000, 105.000000, "00:00");
- TextDrawBackgroundColor(Sat, 255);
- TextDrawFont(Sat, 3);
- TextDrawLetterSize(Sat, 0.500000, 1.000000);
- TextDrawColor(Sat, -1);
- TextDrawSetOutline(Sat, 0);
- TextDrawSetProportional(Sat, 1);
- TextDrawSetShadow(Sat, 1);
- Update();
- SetTimer("Update",1000 * 60,1);
- return true;
- }
- public OnPlayerConnect(playerid)
- {
- new
- sati,
- minuta;
- TextDrawShowForPlayer(playerid,SatBox);
- TextDrawShowForPlayer(playerid,Sat);
- gettime(sati, minuta);
- SetPlayerTime(playerid,sati,minuta);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment