Guest User

Untitled

a guest
May 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.46 KB | None | 0 0
  1. public OnGameModeInit()
  2. {
  3.     Textdraw0 = TextDrawCreate(299.000000, 158.000000, "3");
  4.     TextDrawBackgroundColor(Textdraw0, 255);
  5.     TextDrawFont(Textdraw0, 3);
  6.     TextDrawLetterSize(Textdraw0, 1.789999, 7.299997);
  7.     TextDrawColor(Textdraw0, Uztemimas());
  8.     TextDrawSetOutline(Textdraw0, 0);
  9.     TextDrawSetProportional(Textdraw0, 1);
  10.     TextDrawSetShadow(Textdraw0, 1);
  11.     return 1;
  12. }
  13. CMD:s(playerid,params[])
  14. {
  15.     SetTimerEx("Uztemimas", 30, 0, "i", playerid);
  16.     TextDrawShowForPlayer(playerid,Textdraw0);
  17.     return 1;
  18. }
  19.  
  20. #define SPALVA1 0x00000000
  21. #define SPALVA2 0x00000008
  22. #define SPALVA3 0x00000010
  23. #define SPALVA4 0x00000018
  24. #define SPALVA5 0x00000020
  25. #define SPALVA6 0x00000028
  26. #define SPALVA7 0x00000030
  27. #define SPALVA8 0x00000038
  28. #define SPALVA9 0x00000040
  29. #define SPALVA10 0x00000048
  30. #define SPALVA11 0x00000050
  31. #define SPALVA12 0x00000058
  32. #define SPALVA13 0x00000060
  33. #define SPALVA14 0x00000068
  34. #define SPALVA15 0x00000070
  35. #define SPALVA16 0x00000078
  36. #define SPALVA17 0x00000080
  37. #define SPALVA18 0x00000088
  38. #define SPALVA19 0x00000090
  39. #define SPALVA20 0x00000098
  40. #define SPALVA21 0x000000A0
  41. #define SPALVA22 0x000000A8
  42. #define SPALVA23 0x000000B0
  43. #define SPALVA24 0x000000B8
  44. #define SPALVA25 0x000000C0
  45. #define SPALVA26 0x000000C8
  46. #define SPALVA27 0x000000D0
  47. #define SPALVA28 0x000000D8
  48. #define SPALVA29 0x000000E0
  49. #define SPALVA30 0x000000E8
  50. #define SPALVA31 0x000000F0
  51. #define SPALVA32 0x000000F8
  52. #define SPALVA33 0x000000FF
  53.  
  54.  
  55. forward Uztemimas();
  56. public Uztemimas() // iki 32
  57. {
  58.     Laikas++;
  59.     switch(Laikas)
  60.     {
  61.         case 0: return SPALVA1;
  62.         case 1: return SPALVA2;
  63.         case 2: return SPALVA3;
  64.         case 3: return SPALVA4;
  65.         case 4: return SPALVA5;
  66.         case 5: return SPALVA6;
  67.         case 6: return SPALVA7;
  68.         case 7: return SPALVA8;
  69.         case 8: return SPALVA9;
  70.         case 9: return SPALVA10;
  71.         case 10: return SPALVA11;
  72.         case 11: return SPALVA12;
  73.         case 12: return SPALVA13;
  74.         case 13: return SPALVA14;
  75.         case 14: return SPALVA15;
  76.         case 15: return SPALVA16;
  77.         case 16: return SPALVA17;
  78.         case 17: return SPALVA18;
  79.         case 18: return SPALVA19;
  80.         case 19: return SPALVA20;
  81.         case 20: return SPALVA21;
  82.         case 21: return SPALVA22;
  83.         case 22: return SPALVA23;
  84.         case 23: return SPALVA24;
  85.         case 24: return SPALVA25;
  86.         case 25: return SPALVA26;
  87.         case 26: return SPALVA27;
  88.         case 27: return SPALVA28;
  89.         case 28: return SPALVA29;
  90.         case 29: return SPALVA30;
  91.         case 30: return SPALVA31;
  92.         case 31: return SPALVA32;
  93.         case 32: return SPALVA33;
  94.  
  95.     }
  96.     return 0;
  97. }
Add Comment
Please, Sign In to add comment