Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. /**************************************************
  2. PayDay System 1.0 by Edgar ~
  3.  
  4. **************************************************/
  5.  
  6. //Variabili
  7.  
  8. new Text:orologio;
  9. new PagaRand[52][1] = {
  10. {2},
  11. {47},
  12. {48},
  13. {50},
  14. {58},
  15. {60},
  16. {68},
  17. {72},
  18. {73},
  19. {80},
  20. {81},
  21. {82},
  22. {83},
  23. {95},
  24. {100},
  25. {101},
  26. {102},
  27. {103},
  28. {104},
  29. {108},
  30. {109},
  31. {110},
  32. {121},
  33. {122},
  34. {123},
  35. {135},
  36. {142},
  37. {143},
  38. {144},
  39. {146},
  40. {153},
  41. {154},
  42. {155},
  43. {156},
  44. {158},
  45. {159},
  46. {160},
  47. {161},
  48. {170},
  49. {179},
  50. {180},
  51. {189},
  52. {202},
  53. {203},
  54. {204},
  55. {258},
  56. {259},
  57. {260},
  58. {293},
  59. {295},
  60. {296},
  61. {297}
  62. };
  63.  
  64. //Forward
  65. forward PayDay();
  66.  
  67. //Callback
  68.  
  69. OnFilterScriptInit();{
  70. print("PayDay System by Edgar ~ Caricato");
  71. SetTimer("PayDay",720000,1);//Timer
  72. orologio = TextDrawCreate(544.000000, 16.000000, "00:00:00");
  73. TextDrawBackgroundColor(orologio, 255);
  74. TextDrawFont(orologio, 1);
  75. TextDrawLetterSize(orologio, 0.200000, 1.100000);
  76. TextDrawColor(orologio, -1);
  77. TextDrawSetOutline(orologio, 0);
  78. TextDrawSetProportional(orologio, 1);
  79. TextDrawSetShadow(orologio, 1);
  80. return 1;}
  81.  
  82. public OnPlayerConnect(playerid){
  83. TextDrawShowForPlayer(playerid, Text:orologio);
  84. return 1;}
  85.  
  86. public OnPlayerUpdate(playerid){
  87. new stringa[126];
  88. new ora,minuto,secondo;
  89. gettime(ora,minuto,secondo);
  90. format(stringa,sizeof(stringa), "%d:%d:%d",ora,minuto,secondo);
  91. TextDrawSetString(Text:orologio,stringa);
  92. return 1;}
  93.  
  94.  
  95. public PayDay(){
  96. new RandSoldi;
  97. RandSoldi = random(sizeof(PagaRand));
  98. GivePlayerMoney(playerid, RandSoldi);
  99. return 1;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement