Guest User

Untitled

a guest
Nov 20th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.40 KB | None | 0 0
  1.  
  2. #include <a_samp>
  3. #include <foreach>
  4.  
  5. new Text:Sat;
  6. new Text:SatBox;
  7.  
  8. forward Update();
  9. public Update()
  10. {
  11.     new
  12.          vrijeme[50],
  13.          sati,
  14.          minuta;
  15.     gettime(sati, minuta);
  16.     format(vrijeme,sizeof vrijeme,"SAT: %02d:%02d",sati,minuta);
  17.     TextDrawSetString(Sat,vrijeme);
  18.     SetWorldTime(sati);
  19.     foreach(Player,i) {
  20.     SetPlayerTime(i,sati,minuta); }
  21. }
  22.  
  23. public OnFilterScriptInit()
  24. {
  25.     SatBox = TextDrawCreate(611.000000, 101.000000, "|");
  26.     TextDrawBackgroundColor(SatBox, 255);
  27.     TextDrawFont(SatBox, 3);
  28.     TextDrawLetterSize(SatBox, 0.000000, 2.200000);
  29.     TextDrawColor(SatBox, 16777215);
  30.     TextDrawSetOutline(SatBox, 0);
  31.     TextDrawSetProportional(SatBox, 1);
  32.     TextDrawSetShadow(SatBox, 1);
  33.     TextDrawUseBox(SatBox, 1);
  34.     TextDrawBoxColor(SatBox, 255);
  35.     TextDrawTextSize(SatBox, 496.000000, 1.000000);
  36.     Sat = TextDrawCreate(504.000000, 105.000000, "00:00");
  37.     TextDrawBackgroundColor(Sat, 255);
  38.     TextDrawFont(Sat, 3);
  39.     TextDrawLetterSize(Sat, 0.500000, 1.000000);
  40.     TextDrawColor(Sat, -1);
  41.     TextDrawSetOutline(Sat, 0);
  42.     TextDrawSetProportional(Sat, 1);
  43.     TextDrawSetShadow(Sat, 1);
  44.     Update();
  45.     SetTimer("Update",1000 * 60,1);
  46.     return true;
  47. }
  48.  
  49. public OnPlayerConnect(playerid)
  50. {
  51.     new
  52.          sati,
  53.          minuta;
  54.     TextDrawShowForPlayer(playerid,SatBox);
  55.     TextDrawShowForPlayer(playerid,Sat);
  56.     gettime(sati, minuta);
  57.     SetPlayerTime(playerid,sati,minuta);
  58.     return true;
  59. }
  60.  
Advertisement
Add Comment
Please, Sign In to add comment