Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.93 KB | None | 0 0
  1. /*
  2. BlackJack
  3. */
  4. #include <a_samp>
  5. #include <zcmd>
  6. #include <sscanf2>
  7. #include <foreach>
  8. //==============================================================================
  9. new RouletteInGame[MAX_PLAYERS],RouletteStatus,RouletteTime,RouletteTime2,
  10. playtime,prohodtime,betplayer[MAX_PLAYERS],betsumma[MAX_PLAYERS],
  11. totalbet[3],podkrut,TotalBet,totalsumma[3],
  12. bool:gSelected[MAX_PLAYERS],gSelectColor[MAX_PLAYERS],
  13. step,step2,step3,prohod,zmidialog[MAX_PLAYERS],
  14. Text:CasinoDraw[23],PlayerText:CasinoDrawPlayer[MAX_PLAYERS][2];
  15.  
  16. enum pInfo
  17. {
  18. pName[MAX_PLAYER_NAME]
  19. };
  20. new pData[MAX_PLAYERS][pInfo];
  21. //==============================================================================
  22. public OnFilterScriptInit()
  23. {
  24. print("\n--------------------------------------");
  25. print("[FilterScrips]: Äîïîëíåíèå RouletteGame áûëî óñïåøíî çàãðóæåíî.");
  26. print("[FilterScrips]: Àâòîð: www.vk.com/pawnosos");
  27. print("--------------------------------------\n");
  28. TotalBet = 0,podkrut = 0,RouletteStatus = 0,RouletteTime = 20,RouletteTime2 = 0;
  29. SetTimer("GlobalServerTimer", 1000, true);
  30.  
  31. CasinoDraw[0] = TextDrawCreate(552.000244, 163.692581, "usebox");
  32. TextDrawLetterSize(CasinoDraw[0], 0.000000, 21.442588);
  33. TextDrawTextSize(CasinoDraw[0], 87.333305, 0.000000);
  34. TextDrawAlignment(CasinoDraw[0], 1);
  35. TextDrawColor(CasinoDraw[0], 0);
  36. TextDrawUseBox(CasinoDraw[0], true);
  37. TextDrawBoxColor(CasinoDraw[0], 102);
  38. TextDrawSetShadow(CasinoDraw[0], 0);
  39. TextDrawSetOutline(CasinoDraw[0], 0);
  40. TextDrawFont(CasinoDraw[0], 0);
  41.  
  42. CasinoDraw[1] = TextDrawCreate(154.999923, 111.011093, "usebox");
  43. TextDrawLetterSize(CasinoDraw[1], 0.000000, 5.365226);
  44. TextDrawTextSize(CasinoDraw[1], 87.333351, 0.000000);
  45. TextDrawAlignment(CasinoDraw[1], 1);
  46. TextDrawColor(CasinoDraw[1], 0);
  47. TextDrawUseBox(CasinoDraw[1], true);
  48. TextDrawBoxColor(CasinoDraw[1], 170);
  49. TextDrawSetShadow(CasinoDraw[1], 0);
  50. TextDrawSetOutline(CasinoDraw[1], 0);
  51. TextDrawFont(CasinoDraw[1], 0);
  52.  
  53. CasinoDraw[2] = TextDrawCreate(222.000076, 111.011131, "usebox");
  54. TextDrawLetterSize(CasinoDraw[2], 0.000000, 5.377983);
  55. TextDrawTextSize(CasinoDraw[2], 154.000076, 0.000000);
  56. TextDrawAlignment(CasinoDraw[2], 1);
  57. TextDrawColor(CasinoDraw[2], 0);
  58. TextDrawUseBox(CasinoDraw[2], true);
  59. TextDrawBoxColor(CasinoDraw[2], -16777046);
  60. TextDrawSetShadow(CasinoDraw[2], 0);
  61. TextDrawSetOutline(CasinoDraw[2], 0);
  62. TextDrawFont(CasinoDraw[2], 0);
  63.  
  64. CasinoDraw[3] = TextDrawCreate(289.000000, 111.011131, "usebox");
  65. TextDrawLetterSize(CasinoDraw[3], 0.000000, 5.398560);
  66. TextDrawTextSize(CasinoDraw[3], 220.999908, 0.000000);
  67. TextDrawAlignment(CasinoDraw[3], 1);
  68. TextDrawColor(CasinoDraw[3], 0);
  69. TextDrawUseBox(CasinoDraw[3], true);
  70. TextDrawBoxColor(CasinoDraw[3], 170);
  71. TextDrawSetShadow(CasinoDraw[3], 0);
  72. TextDrawSetOutline(CasinoDraw[3], 0);
  73. TextDrawFont(CasinoDraw[3], 0);
  74.  
  75. CasinoDraw[4] = TextDrawCreate(355.666961, 110.596260, "usebox");
  76. TextDrawLetterSize(CasinoDraw[4], 0.000000, 5.431893);
  77. TextDrawTextSize(CasinoDraw[4], 288.000183, 0.000000);
  78. TextDrawAlignment(CasinoDraw[4], 1);
  79. TextDrawColor(CasinoDraw[4], 0);
  80. TextDrawUseBox(CasinoDraw[4], true);
  81. TextDrawBoxColor(CasinoDraw[4], -16777046);
  82. TextDrawSetShadow(CasinoDraw[4], 0);
  83. TextDrawSetOutline(CasinoDraw[4], 0);
  84. TextDrawFont(CasinoDraw[4], 0);
  85.  
  86. CasinoDraw[5] = TextDrawCreate(421.666473, 110.596221, "usebox");
  87. TextDrawLetterSize(CasinoDraw[5], 0.000000, 5.452468);
  88. TextDrawTextSize(CasinoDraw[5], 354.333190, 0.000000);
  89. TextDrawAlignment(CasinoDraw[5], 1);
  90. TextDrawColor(CasinoDraw[5], 0);
  91. TextDrawUseBox(CasinoDraw[5], true);
  92. TextDrawBoxColor(CasinoDraw[5], 170);
  93. TextDrawSetShadow(CasinoDraw[5], 0);
  94. TextDrawSetOutline(CasinoDraw[5], 0);
  95. TextDrawFont(CasinoDraw[5], 0);
  96.  
  97. CasinoDraw[6] = TextDrawCreate(486.000091, 110.596252, "usebox");
  98. TextDrawLetterSize(CasinoDraw[6], 0.000000, 5.431891);
  99. TextDrawTextSize(CasinoDraw[6], 420.333404, 0.000000);
  100. TextDrawAlignment(CasinoDraw[6], 1);
  101. TextDrawColor(CasinoDraw[6], 0);
  102. TextDrawUseBox(CasinoDraw[6], true);
  103. TextDrawBoxColor(CasinoDraw[6], -16777046);
  104. TextDrawSetShadow(CasinoDraw[6], 0);
  105. TextDrawSetOutline(CasinoDraw[6], 0);
  106. TextDrawFont(CasinoDraw[6], 0);
  107.  
  108. CasinoDraw[7] = TextDrawCreate(551.666381, 110.181465, "usebox");
  109. TextDrawLetterSize(CasinoDraw[7], 0.000000, 5.473046);
  110. TextDrawTextSize(CasinoDraw[7], 485.000000, 0.000000);
  111. TextDrawAlignment(CasinoDraw[7], 1);
  112. TextDrawColor(CasinoDraw[7], 0);
  113. TextDrawUseBox(CasinoDraw[7], true);
  114. TextDrawBoxColor(CasinoDraw[7], 170);
  115. TextDrawSetShadow(CasinoDraw[7], 0);
  116. TextDrawSetOutline(CasinoDraw[7], 0);
  117. TextDrawFont(CasinoDraw[7], 0);
  118.  
  119. CasinoDraw[8] = TextDrawCreate(324.333251, 108.522209, "usebox");
  120. TextDrawLetterSize(CasinoDraw[8], 0.000000, 5.703497);
  121. TextDrawTextSize(CasinoDraw[8], 320.333251, 0.000000);
  122. TextDrawAlignment(CasinoDraw[8], 1);
  123. TextDrawColor(CasinoDraw[8], 0);
  124. TextDrawUseBox(CasinoDraw[8], true);
  125. TextDrawBoxColor(CasinoDraw[8], -1);
  126. TextDrawSetShadow(CasinoDraw[8], 0);
  127. TextDrawSetOutline(CasinoDraw[8], 0);
  128. TextDrawFont(CasinoDraw[8], 0);
  129.  
  130. CasinoDraw[9] = TextDrawCreate(387.333251, 89.600021, "Jackpot Roulette");
  131. TextDrawLetterSize(CasinoDraw[9], 0.650999, 2.500150);
  132. TextDrawAlignment(CasinoDraw[9], 3);
  133. TextDrawColor(CasinoDraw[9], -1);
  134. TextDrawUseBox(CasinoDraw[9], true);
  135. TextDrawBoxColor(CasinoDraw[9], 0);
  136. TextDrawSetShadow(CasinoDraw[9], 0);
  137. TextDrawSetOutline(CasinoDraw[9], 1);
  138. TextDrawBackgroundColor(CasinoDraw[9], 51);
  139. TextDrawFont(CasinoDraw[9], 0);
  140. TextDrawSetProportional(CasinoDraw[9], 1);
  141.  
  142. CasinoDraw[10] = TextDrawCreate(552.000000, 343.722259, "usebox");
  143. TextDrawLetterSize(CasinoDraw[10], 0.000000, 1.401437);
  144. TextDrawTextSize(CasinoDraw[10], 87.333335, 0.000000);
  145. TextDrawAlignment(CasinoDraw[10], 1);
  146. TextDrawColor(CasinoDraw[10], 0);
  147. TextDrawUseBox(CasinoDraw[10], true);
  148. TextDrawBoxColor(CasinoDraw[10], 102);
  149. TextDrawSetShadow(CasinoDraw[10], 0);
  150. TextDrawSetOutline(CasinoDraw[10], 0);
  151. TextDrawFont(CasinoDraw[10], 0);
  152.  
  153. CasinoDraw[11] = TextDrawCreate(268.000061, 344.296264, "ROUND STARTS IN: TIME");
  154. TextDrawLetterSize(CasinoDraw[11], 0.201666, 1.205925);
  155. TextDrawAlignment(CasinoDraw[11], 1);
  156. TextDrawColor(CasinoDraw[11], -1);
  157. TextDrawSetShadow(CasinoDraw[11], 0);
  158. TextDrawSetOutline(CasinoDraw[11], 1);
  159. TextDrawBackgroundColor(CasinoDraw[11], 51);
  160. TextDrawFont(CasinoDraw[11], 2);
  161. TextDrawSetProportional(CasinoDraw[11], 1);
  162.  
  163. CasinoDraw[12] = TextDrawCreate(204.333374, 210.151870, "usebox");
  164. TextDrawLetterSize(CasinoDraw[12], 0.000000, 1.665224);
  165. TextDrawTextSize(CasinoDraw[12], 116.666656, 0.000000);
  166. TextDrawAlignment(CasinoDraw[12], 1);
  167. TextDrawColor(CasinoDraw[12], 0);
  168. TextDrawUseBox(CasinoDraw[12], true);
  169. TextDrawBoxColor(CasinoDraw[12], -16777131);
  170. TextDrawSetShadow(CasinoDraw[12], 0);
  171. TextDrawSetOutline(CasinoDraw[12], 0);
  172. TextDrawFont(CasinoDraw[12], 0);
  173.  
  174. CasinoDraw[13] = TextDrawCreate(124.666633, 227.318542, "0 users total 0$");
  175. TextDrawLetterSize(CasinoDraw[13], 0.121666, 0.998518);
  176. TextDrawAlignment(CasinoDraw[13], 1);
  177. TextDrawColor(CasinoDraw[13], -1);
  178. TextDrawSetShadow(CasinoDraw[13], 0);
  179. TextDrawSetOutline(CasinoDraw[13], 1);
  180. TextDrawBackgroundColor(CasinoDraw[13], 51);
  181. TextDrawFont(CasinoDraw[13], 2);
  182. TextDrawSetProportional(CasinoDraw[13], 1);
  183.  
  184. CasinoDraw[14] = TextDrawCreate(365.999938, 210.151809, "usebox");
  185. TextDrawLetterSize(CasinoDraw[14], 0.000000, 1.665226);
  186. TextDrawTextSize(CasinoDraw[14], 278.000061, 0.000000);
  187. TextDrawAlignment(CasinoDraw[14], 1);
  188. TextDrawColor(CasinoDraw[14], 0);
  189. TextDrawUseBox(CasinoDraw[14], true);
  190. TextDrawBoxColor(CasinoDraw[14], 16711765);
  191. TextDrawSetShadow(CasinoDraw[14], 0);
  192. TextDrawSetOutline(CasinoDraw[14], 0);
  193. TextDrawFont(CasinoDraw[14], 0);
  194.  
  195. CasinoDraw[15] = TextDrawCreate(291.333404, 226.074081, "0 USERS TOTAL 0$");
  196. TextDrawLetterSize(CasinoDraw[15], 0.101666, 0.998518);
  197. TextDrawAlignment(CasinoDraw[15], 1);
  198. TextDrawColor(CasinoDraw[15], -1);
  199. TextDrawSetShadow(CasinoDraw[15], 0);
  200. TextDrawSetOutline(CasinoDraw[15], 1);
  201. TextDrawBackgroundColor(CasinoDraw[15], 51);
  202. TextDrawFont(CasinoDraw[15], 2);
  203. TextDrawSetProportional(CasinoDraw[15], 1);
  204.  
  205. CasinoDraw[16] = TextDrawCreate(524.333129, 210.151870, "usebox");
  206. TextDrawLetterSize(CasinoDraw[16], 0.000000, 1.665226);
  207. TextDrawTextSize(CasinoDraw[16], 436.333343, 0.000000);
  208. TextDrawAlignment(CasinoDraw[16], 1);
  209. TextDrawColor(CasinoDraw[16], 0);
  210. TextDrawUseBox(CasinoDraw[16], true);
  211. TextDrawBoxColor(CasinoDraw[16], 170);
  212. TextDrawSetShadow(CasinoDraw[16], 0);
  213. TextDrawSetOutline(CasinoDraw[16], 0);
  214. TextDrawFont(CasinoDraw[16], 0);
  215.  
  216. CasinoDraw[17] = TextDrawCreate(451.666625, 226.488876, "0 USERS TOTAL 0$");
  217. TextDrawLetterSize(CasinoDraw[17], 0.101666, 1.019259);
  218. TextDrawAlignment(CasinoDraw[17], 1);
  219. TextDrawColor(CasinoDraw[17], -1);
  220. TextDrawSetShadow(CasinoDraw[17], 0);
  221. TextDrawSetOutline(CasinoDraw[17], 1);
  222. TextDrawBackgroundColor(CasinoDraw[17], 51);
  223. TextDrawFont(CasinoDraw[17], 2);
  224. TextDrawSetProportional(CasinoDraw[17], 1);
  225.  
  226. CasinoDraw[18] = TextDrawCreate(133.333297, 209.896331, "win-2x");
  227. TextDrawLetterSize(CasinoDraw[18], 0.350333, 1.500443);
  228. TextDrawAlignment(CasinoDraw[18], 1);
  229. TextDrawColor(CasinoDraw[18], -1);
  230. TextDrawSetShadow(CasinoDraw[18], 0);
  231. TextDrawSetOutline(CasinoDraw[18], 1);
  232. TextDrawBackgroundColor(CasinoDraw[18], 51);
  233. TextDrawFont(CasinoDraw[18], 2);
  234. TextDrawSetProportional(CasinoDraw[18], 1);
  235. TextDrawSetSelectable(CasinoDraw[18], true);
  236.  
  237. CasinoDraw[19] = TextDrawCreate(296.999877, 210.311126, "win-4x");
  238. TextDrawLetterSize(CasinoDraw[19], 0.350999, 1.500444);
  239. TextDrawAlignment(CasinoDraw[19], 1);
  240. TextDrawColor(CasinoDraw[19], -1);
  241. TextDrawSetShadow(CasinoDraw[19], 0);
  242. TextDrawSetOutline(CasinoDraw[19], 1);
  243. TextDrawBackgroundColor(CasinoDraw[19], 51);
  244. TextDrawFont(CasinoDraw[19], 2);
  245. TextDrawSetProportional(CasinoDraw[19], 1);
  246. TextDrawSetSelectable(CasinoDraw[19], true);
  247.  
  248. CasinoDraw[20] = TextDrawCreate(457.333404, 210.311126, "win-2x");
  249. TextDrawLetterSize(CasinoDraw[20], 0.350333, 1.500444);
  250. TextDrawAlignment(CasinoDraw[20], 1);
  251. TextDrawColor(CasinoDraw[20], -1);
  252. TextDrawSetShadow(CasinoDraw[20], 0);
  253. TextDrawSetOutline(CasinoDraw[20], 1);
  254. TextDrawBackgroundColor(CasinoDraw[20], 51);
  255. TextDrawFont(CasinoDraw[20], 2);
  256. TextDrawSetProportional(CasinoDraw[20], 1);
  257. TextDrawSetSelectable(CasinoDraw[20], true);
  258.  
  259. CasinoDraw[21] = TextDrawCreate(366.666778, 326.715240, "usebox");
  260. TextDrawLetterSize(CasinoDraw[21], 0.000000, 1.519134);
  261. TextDrawTextSize(CasinoDraw[21], 277.666778, 0.000000);
  262. TextDrawAlignment(CasinoDraw[21], 1);
  263. TextDrawColor(CasinoDraw[21], 0);
  264. TextDrawUseBox(CasinoDraw[21], true);
  265. TextDrawBoxColor(CasinoDraw[21], 102);
  266. TextDrawSetShadow(CasinoDraw[21], 0);
  267. TextDrawSetOutline(CasinoDraw[21], 0);
  268. TextDrawFont(CasinoDraw[21], 0);
  269.  
  270. CasinoDraw[22] = TextDrawCreate(308.333251, 326.459228, "EXIT");
  271. TextDrawLetterSize(CasinoDraw[22], 0.301000, 1.500444);
  272. TextDrawAlignment(CasinoDraw[22], 1);
  273. TextDrawColor(CasinoDraw[22], -1);
  274. TextDrawSetShadow(CasinoDraw[22], 0);
  275. TextDrawSetOutline(CasinoDraw[22], 1);
  276. TextDrawBackgroundColor(CasinoDraw[22], 51);
  277. TextDrawFont(CasinoDraw[22], 2);
  278. TextDrawSetProportional(CasinoDraw[22], 1);
  279. TextDrawSetSelectable(CasinoDraw[22], true);
  280. return 1;
  281. }
  282. //==============================================================================
  283. public OnFilterScriptExit()
  284. {
  285. print("\n--------------------------------------");
  286. print("[FilterScrips]: Äîïîëíåíèå RouletteGame çàâåðøèëî ñâîþ ðàáîòó.");
  287. print("[FilterScrips]: Àâòîð: www.vk.com/pawnosos");
  288. print("--------------------------------------\n");
  289. return 1;
  290. }
  291. //==============================================================================
  292. public OnPlayerConnect(playerid)
  293. {
  294. GetPlayerName(playerid, pData[playerid][pName], MAX_PLAYER_NAME);
  295.  
  296. RouletteInGame[playerid] = 0; // êàçèê
  297.  
  298. CasinoDrawPlayer[playerid][0] = CreatePlayerTextDraw(playerid,91.666679, 344.296356, "BALANCE: SUMMA");
  299. PlayerTextDrawLetterSize(playerid,CasinoDrawPlayer[playerid][0], 0.201666, 1.205925);
  300. PlayerTextDrawAlignment(playerid,CasinoDrawPlayer[playerid][0], 1);
  301. PlayerTextDrawColor(playerid,CasinoDrawPlayer[playerid][0], -1);
  302. PlayerTextDrawSetShadow(playerid,CasinoDrawPlayer[playerid][0], 0);
  303. PlayerTextDrawSetOutline(playerid,CasinoDrawPlayer[playerid][0], 1);
  304. PlayerTextDrawBackgroundColor(playerid,CasinoDrawPlayer[playerid][0], 51);
  305. PlayerTextDrawFont(playerid,CasinoDrawPlayer[playerid][0], 2);
  306. PlayerTextDrawSetProportional(playerid,CasinoDrawPlayer[playerid][0], 1);
  307.  
  308. CasinoDrawPlayer[playerid][1] = CreatePlayerTextDraw(playerid,438.333282, 343.881561, "BET: NONE");
  309. PlayerTextDrawLetterSize(playerid,CasinoDrawPlayer[playerid][1], 0.201000, 1.205926);
  310. PlayerTextDrawAlignment(playerid,CasinoDrawPlayer[playerid][1], 1);
  311. PlayerTextDrawColor(playerid,CasinoDrawPlayer[playerid][1], -1);
  312. PlayerTextDrawSetShadow(playerid,CasinoDrawPlayer[playerid][1], 0);
  313. PlayerTextDrawSetOutline(playerid,CasinoDrawPlayer[playerid][1], 1);
  314. PlayerTextDrawBackgroundColor(playerid,CasinoDrawPlayer[playerid][1], 51);
  315. PlayerTextDrawFont(playerid,CasinoDrawPlayer[playerid][1], 2);
  316. PlayerTextDrawSetProportional(playerid,CasinoDrawPlayer[playerid][1], 1);
  317. return 1;
  318. }
  319. //==============================================================================
  320. public OnPlayerUpdate(playerid)
  321. {
  322. if(gSelected[playerid] == true) SelectTextDrawEx(playerid,gSelectColor[playerid]);
  323. return 1;
  324. }
  325. //==============================================================================
  326. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  327. {
  328. if(dialogid == 5551)
  329. {
  330. if(!response) return zmidialog[playerid] = 0;
  331. if(strval(inputtext) < 10000 || strval(inputtext) > 1000000) return ShowPlayerDialog(playerid, 5551, DIALOG_STYLE_INPUT, "Enter a bet","Introdu suma pe care vrei sa o pariezi:", "OK", "Cancel"),SendClientMessage(playerid,-1,"Poti paria intre 10.000$ si 1.000.000$");
  332. if(GetPlayerMoney(playerid) < strval(inputtext)) return SendClientMessage(playerid,-1,"You don't have enough money.");
  333. betsumma[playerid] = strval(inputtext),GivePlayerMoney(playerid,-betsumma[playerid]),totalbet[0] ++,totalsumma[0] +=betsumma[playerid];
  334. new string[128];
  335. format(string,sizeof(string),"Ai pariat %d$ pe {FF0000}RED 2x WIN",betsumma[playerid]);
  336. SendClientMessage(playerid,-1,string);
  337. format(string, sizeof(string), "%d users total %d$", totalbet[0],totalsumma[0]);
  338. TextDrawSetString(CasinoDraw[13], string);
  339. format(string, sizeof(string), "BET: %d on red", betsumma[playerid]);
  340. PlayerTextDrawSetString(playerid,CasinoDrawPlayer[playerid][1], string);
  341. betplayer[playerid] = 14,TotalBet ++,zmidialog[playerid] = 0,PlayerPlaySound(playerid,4203,0.0,0.0,0.0);
  342. return true;
  343. }
  344. if(dialogid == 5552)
  345. {
  346. if(!response) return zmidialog[playerid] = 0;
  347. if(strval(inputtext) < 10000 || strval(inputtext) > 1000000) return ShowPlayerDialog(playerid, 5552, DIALOG_STYLE_INPUT, "Enter a bet:","Introdu suma pe care vrei sa o pariezi:", "OK", "Cancel"),SendClientMessage(playerid,-1,"Poti paria intre 10.000$ si 1.000.000$");
  348. if(GetPlayerMoney(playerid) < strval(inputtext)) return SendClientMessage(playerid,-1,"You don't have enough money.");
  349. betsumma[playerid] = strval(inputtext),GivePlayerMoney(playerid,-betsumma[playerid]),totalbet[1] ++,totalsumma[1] +=betsumma[playerid];
  350. new string[128];
  351. format(string,sizeof(string),"Ai pariat %d$ pe {009900}GREEN 14x WIN",betsumma[playerid]);
  352. SendClientMessage(playerid,-1,string);
  353. format(string, sizeof(string), "%d users total %d$", totalbet[1],totalsumma[1]);
  354. TextDrawSetString(CasinoDraw[15], string);
  355. format(string, sizeof(string), "BET: %d on green", betsumma[playerid]);
  356. PlayerTextDrawSetString(playerid,CasinoDrawPlayer[playerid][1], string);
  357. betplayer[playerid] = 4,TotalBet ++,zmidialog[playerid] = 0,PlayerPlaySound(playerid,4203,0.0,0.0,0.0);
  358. return true;
  359. }
  360. if(dialogid == 5553)
  361. {
  362. if(!response) return zmidialog[playerid] = 0;
  363. if(strval(inputtext) < 10000 || strval(inputtext) > 1000000) return ShowPlayerDialog(playerid, 5553, DIALOG_STYLE_INPUT, "Enter a bet:","Introdu suma pe care vrei sa o pariezi:", "OK", "Cancel"),SendClientMessage(playerid,-1,"Poti paria intre 10.000$ si 1.000.000$");
  364. if(GetPlayerMoney(playerid) < strval(inputtext)) return SendClientMessage(playerid,-1,"You don't have enough money.");
  365. betsumma[playerid] = strval(inputtext),GivePlayerMoney(playerid,-betsumma[playerid]),totalbet[2] ++,totalsumma[2] +=betsumma[playerid];
  366. new string[128];
  367. format(string,sizeof(string),"Ai pariat %d$ pe {1a1a1a}BLACK 2x WIN.",betsumma[playerid]);
  368. SendClientMessage(playerid,-1,string);
  369. format(string, sizeof(string), "%d users total %d$", totalbet[2],totalsumma[2]);
  370. TextDrawSetString(CasinoDraw[17], string);
  371. format(string, sizeof(string), "BET: %d on black", betsumma[playerid]);
  372. PlayerTextDrawSetString(playerid,CasinoDrawPlayer[playerid][1], string);
  373. betplayer[playerid] = 10,TotalBet ++,zmidialog[playerid] = 0,PlayerPlaySound(playerid,4203,0.0,0.0,0.0);
  374. return true;
  375. }
  376. return 1;
  377. }
  378. //================================[Êîìàíäû]=====================================
  379. CMD:roulette(playerid,params[])
  380. {
  381. if(IsPlayerInRangeOfPoint(playerid, 5.0, 1954.4076,1039.7755,992.8594) || IsPlayerInRangeOfPoint(playerid, 5.0, 1950.8633,1041.6986,992.8594) || IsPlayerInRangeOfPoint(playerid, 5.0, 1956.5675,1035.7427,992.8594)) return SendClientMessage(playerid,-1, "Nu esti la o ruleta.");
  382. if(RouletteInGame[playerid] == 1) return SendClientMessage(playerid,-1,"Deja joci la ruleta.");
  383. for(new t; t<23; t++) TextDrawShowForPlayer(playerid,CasinoDraw[t]),PlayerTextDrawShow(playerid,CasinoDrawPlayer[playerid][0]),PlayerTextDrawShow(playerid,CasinoDrawPlayer[playerid][1]);
  384. SelectTextDrawEx(playerid,0xFFFFFFFF),RouletteInGame[playerid] = 1;
  385. return true;
  386. }
  387.  
  388. CMD:podkrut(playerid,params[])
  389. {
  390. if(sscanf(params, "d", params[0])) return SendClientMessage(playerid, -1, "Èñïîëüçîâàíèå: /podkrut [×èñëî(0-25 - BLACK | 26-28 - GREEN | 29-55 RED)]");
  391. if(params[0] < 0 || params[0] > 55) return SendClientMessage(playerid,-1,"Íåëüçÿ ìåíüøå 0 è áîëüøå 55");
  392. new string[128];
  393. if(podkrut != 0)
  394. {
  395. format(string,sizeof(string),"Êòî-òî óæå ïîäêðóòèë íà %d ÷èñëî",podkrut);
  396. SendClientMessage(playerid,-1,string);
  397. return true;
  398. }
  399. podkrut = params[0];
  400. format(string,sizeof(string),"Âû óñïåøíî ïîäêðóòèëè ÷èñëî %d",podkrut);
  401. SendClientMessage(playerid,-1,string);
  402. return true;
  403. }
  404. //================================[Ñòîêè/Ïàáëèêè]===============================
  405. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  406. {
  407. if(clickedid == Text:INVALID_TEXT_DRAW)
  408. {
  409. if(gSelected[playerid] == true) SelectTextDraw(playerid,gSelectColor[playerid]);
  410. return 1;
  411. }
  412. if(clickedid == Text:CasinoDraw[18])
  413. {
  414. if(RouletteStatus == 1 || betsumma[playerid] != 0) return SendClientMessage(playerid,-1,"You already placed a bet.");
  415. if(zmidialog[playerid] == 1) return true;
  416. ShowPlayerDialog(playerid, 5551, DIALOG_STYLE_INPUT, "Enter a bet:","Introdu suma pe care vrei sa o pariezi:", "OK", "Cancel"),zmidialog[playerid] = 1;
  417. } // RED
  418. if(clickedid == Text:CasinoDraw[19])
  419. {
  420. if(RouletteStatus == 1 || betsumma[playerid] != 0) return SendClientMessage(playerid,-1,"You already placed a bet.");
  421. if(zmidialog[playerid] == 1) return true;
  422. ShowPlayerDialog(playerid, 5552, DIALOG_STYLE_INPUT, "Enter a bet:","Introdu suma pe care vrei sa o pariezi:", "OK", "Cancel"),zmidialog[playerid] = 1;
  423. } // GREEN
  424. if(clickedid == Text:CasinoDraw[20])
  425. {
  426. if(RouletteStatus == 1 || betsumma[playerid] != 0) return SendClientMessage(playerid,-1,"You already placed a bet.");
  427. if(zmidialog[playerid] == 1) return true;
  428. ShowPlayerDialog(playerid, 5553, DIALOG_STYLE_INPUT, "Enter a bet:","Introdu suma pe care vrei sa o pariezi:", "OK", "Cancel"),zmidialog[playerid] = 1;
  429. } // BLACK
  430. if(clickedid == Text:CasinoDraw[22])
  431. {
  432. if(zmidialog[playerid] == 1) return true;
  433. if(RouletteStatus == 1) return SendClientMessage(playerid,-1,"Asteapta pana ce se invarte ruleta.");
  434. RouletteInGame[playerid] = 0,PlayerTextDrawSetString(playerid,CasinoDrawPlayer[playerid][1], "BET: NONE");
  435. if(TotalBet > 0) TotalBet --;
  436. for(new x; x<23; x++) TextDrawHideForPlayer(playerid,CasinoDraw[x]),CancelSelectTextDrawEx(playerid),PlayerTextDrawHide(playerid,CasinoDrawPlayer[playerid][0]),PlayerTextDrawHide(playerid,CasinoDrawPlayer[playerid][1]);
  437. new string[64];
  438. if(betplayer[playerid] == 10)
  439. {
  440. totalbet[2] --,totalsumma[2] -= betsumma[playerid];
  441. if(totalbet[2] < 0) totalbet[2] = 0;
  442. format(string, sizeof(string), "%d users total %d$", totalbet[2],totalsumma[2]);
  443. TextDrawSetString(CasinoDraw[17], string);
  444. }
  445. if(betplayer[playerid] == 14)
  446. {
  447. totalbet[0] --,totalsumma[0] -= betsumma[playerid];
  448. if(totalbet[0] < 0) totalbet[0] = 0;
  449. format(string, sizeof(string), "%d users total %d$", totalbet[0],totalsumma[0]);
  450. TextDrawSetString(CasinoDraw[13], string);
  451. }
  452. if(betplayer[playerid] == 4)
  453. {
  454. totalbet[1] --,totalsumma[1] -= betsumma[playerid];
  455. if(totalbet[1] < 0) totalbet[1] = 0;
  456. format(string, sizeof(string), "%d users total %d$", totalbet[1],totalsumma[1]);
  457. TextDrawSetString(CasinoDraw[15], string);
  458. }
  459. GivePlayerMoney(playerid,betsumma[playerid]),betsumma[playerid] = 0;
  460. } // exit
  461. return 1;
  462. }
  463. //------------------------------------------------------------------------------
  464. stock SelectTextDrawEx(playerid,color)
  465. {
  466. gSelected[playerid] = true;
  467. gSelectColor[playerid] = color;
  468. SelectTextDraw(playerid,color);
  469. return 1;
  470. }
  471. //------------------------------------------------------------------------------
  472. stock CancelSelectTextDrawEx(playerid)
  473. {
  474. gSelected[playerid] = false;
  475. CancelSelectTextDraw(playerid);
  476. return 1;
  477. }
  478. //------------------------------------------------------------------------------
  479. forward RouletteGame1();
  480. public RouletteGame1()
  481. {
  482. if(RouletteTime2 == 10 && podkrut == 0) prohod = random(55);
  483. else if(RouletteTime2 == 10 && podkrut != 0) prohod = podkrut;
  484. step ++;
  485. switch(prohod)
  486. {
  487. case 0..25:
  488. {
  489. switch(step)
  490. {
  491. case 1: prohodtime = SetTimer("TextDrawProhod1", 450, true),TextDrawSetString(CasinoDraw[11], "Rolling roulette..");
  492. case 10:
  493. {
  494. foreach(new i:Player)
  495. {
  496. HideCasino(i);
  497. TextDrawBoxColor(CasinoDraw[1], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[2], 0x000000AA),TextDrawBoxColor(CasinoDraw[3], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[4], 0x000000AA),TextDrawBoxColor(CasinoDraw[5], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[6], 0x000000AA),TextDrawBoxColor(CasinoDraw[7], 0xFF0000AA);
  498. ShowCasino(i);
  499. if(betplayer[i] == 10)
  500. {
  501. SendClientMessage(i,-1,"You have won 2x money.");
  502. GivePlayerMoney(i,betsumma[i]*2),PlayerPlaySound(i,43001,0.0,0.0,0.0);
  503. } else if(betplayer[i] == 14 || betplayer[i] == 4) SendClientMessage(i,-1,"The roullete hands on BLACK"),PlayerPlaySound(i,1085,0.0,0.0,0.0);
  504. betsumma[i] = 0,betplayer[i] = 0,PlayerTextDrawSetString(i,CasinoDrawPlayer[i][1], "BET: NONE");
  505. }
  506. RouletteTime = 20,RouletteStatus = 0,TotalBet = 0,step = 0,step2 = 0,step3 = 0,podkrut = 0;
  507. for(new i; i<3; i++) totalbet[i] = 0;
  508. for(new i; i<3; i++) totalsumma[i] = 0;
  509. KillTimer(playtime),KillTimer(prohodtime);
  510. TextDrawSetString(CasinoDraw[11], "Win black");
  511. TextDrawSetString(CasinoDraw[13], "0 users total 0$");
  512. TextDrawSetString(CasinoDraw[15], "0 users total 0$");
  513. TextDrawSetString(CasinoDraw[17], "0 users total 0$");
  514. return true;
  515. }
  516. }
  517. }
  518. case 26..28:
  519. {
  520. switch(step)
  521. {
  522. case 1: prohodtime = SetTimer("TextDrawProhod2", 450, true),TextDrawSetString(CasinoDraw[11], "Rolling roulette..");
  523. case 10:
  524. {
  525. foreach(new i:Player)
  526. {
  527. HideCasino(i);
  528. TextDrawBoxColor(CasinoDraw[1], 0x000000AA),TextDrawBoxColor(CasinoDraw[2], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[3], 0x000000AA),TextDrawBoxColor(CasinoDraw[4], 0x00FF00AA),TextDrawBoxColor(CasinoDraw[5], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[6], 0x000000AA),TextDrawBoxColor(CasinoDraw[7], 0xFF0000AA);
  529. ShowCasino(i);
  530. if(betplayer[i] == 4)
  531. {
  532. SendClientMessage(i,-1,"You have won 14x money.");
  533. GivePlayerMoney(i,betsumma[i]*14),PlayerPlaySound(i,43001,0.0,0.0,0.0);
  534. } else if(betplayer[i] == 10 || betplayer[i] == 14) SendClientMessage(i,-1,"The roulette hands on GREEN."),PlayerPlaySound(i,1085,0.0,0.0,0.0);
  535. betsumma[i] = 0,betplayer[i] = 0,PlayerTextDrawSetString(i,CasinoDrawPlayer[i][1], "BET: NONE");
  536. }
  537. RouletteTime = 20,TotalBet = 0,RouletteStatus = 0,step = 0,step2 = 0,step3 = 0,podkrut = 0;
  538. for(new i; i<3; i++) totalbet[i] = 0;
  539. for(new i; i<3; i++) totalsumma[i] = 0;
  540. KillTimer(playtime),KillTimer(prohodtime);
  541. TextDrawSetString(CasinoDraw[11], "Win Green");
  542. TextDrawSetString(CasinoDraw[13], "0 users total 0$");
  543. TextDrawSetString(CasinoDraw[15], "0 users total 0$");
  544. TextDrawSetString(CasinoDraw[17], "0 users total 0$");
  545. return true;
  546. }
  547. }
  548. }
  549. case 29..55:
  550. {
  551. switch(step)
  552. {
  553. case 1: prohodtime = SetTimer("TextDrawProhod3", 450, true),TextDrawSetString(CasinoDraw[11], "Rolling roulette..");
  554. case 10:
  555. {
  556. foreach(new i:Player)
  557. {
  558. HideCasino(i);
  559. TextDrawBoxColor(CasinoDraw[1], 0x000000AA),TextDrawBoxColor(CasinoDraw[2], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[3], 0x000000AA),TextDrawBoxColor(CasinoDraw[4], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[5], 0x000000AA),TextDrawBoxColor(CasinoDraw[6], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[7], 0x000000AA);
  560. ShowCasino(i);
  561. if(betplayer[i] == 14)
  562. {
  563. SendClientMessage(i,-1,"You have won 2x bet money.");
  564. GivePlayerMoney(i,betsumma[i]*2),PlayerPlaySound(i,43001,0.0,0.0,0.0);
  565. } else if(betplayer[i] == 10 || betplayer[i] == 4) SendClientMessage(i,-1,"The roulette hands on RED."),PlayerPlaySound(i,1085,0.0,0.0,0.0);
  566. betsumma[i] = 0,betplayer[i] = 0,PlayerTextDrawSetString(i,CasinoDrawPlayer[i][1], "BET: NONE");
  567. }
  568. RouletteTime = 20,TotalBet = 0,RouletteStatus = 0,step = 0,step2 = 0,step3 = 0,podkrut = 0;
  569. for(new i; i<3; i++) totalbet[i] = 0;
  570. for(new i; i<3; i++) totalsumma[i] = 0;
  571. KillTimer(playtime),KillTimer(prohodtime);
  572. TextDrawSetString(CasinoDraw[11], "Win red");
  573. TextDrawSetString(CasinoDraw[13], "0 users total 0$");
  574. TextDrawSetString(CasinoDraw[15], "0 users total 0$");
  575. TextDrawSetString(CasinoDraw[17], "0 users total 0$");
  576. return true;
  577. }
  578. }
  579. }
  580. default: foreach(new i:Player) SendClientMessage(i,-1,"Èãðà íà÷èíàåòñÿ.");
  581. }
  582. return true;
  583. }
  584. //------------------------------------------------------------------------------
  585. stock ShowCasino(playerid)
  586. {
  587. if(RouletteInGame[playerid] == 0) return true;
  588. TextDrawShowForPlayer(playerid,CasinoDraw[1]);
  589. TextDrawShowForPlayer(playerid,CasinoDraw[2]);
  590. TextDrawShowForPlayer(playerid,CasinoDraw[3]);
  591. TextDrawShowForPlayer(playerid,CasinoDraw[4]);
  592. TextDrawShowForPlayer(playerid,CasinoDraw[5]);
  593. TextDrawShowForPlayer(playerid,CasinoDraw[6]);
  594. TextDrawShowForPlayer(playerid,CasinoDraw[7]);
  595. return true;
  596. }
  597. //------------------------------------------------------------------------------
  598. stock HideCasino(playerid)
  599. {
  600. if(RouletteInGame[playerid] == 0) return true;
  601. TextDrawHideForPlayer(playerid,CasinoDraw[1]);
  602. TextDrawHideForPlayer(playerid,CasinoDraw[2]);
  603. TextDrawHideForPlayer(playerid,CasinoDraw[3]);
  604. TextDrawHideForPlayer(playerid,CasinoDraw[4]);
  605. TextDrawHideForPlayer(playerid,CasinoDraw[5]);
  606. TextDrawHideForPlayer(playerid,CasinoDraw[6]);
  607. TextDrawHideForPlayer(playerid,CasinoDraw[7]);
  608. return true;
  609. }
  610. //------------------------------------------------------------------------------
  611. forward TextDrawProhod1();
  612. public TextDrawProhod1() // RED
  613. {
  614. if(step2 == 0) step2 ++;
  615. switch(step2)
  616. {
  617. case 1:
  618. {
  619. foreach(new i:Player)
  620. {
  621. HideCasino(i);
  622. TextDrawBoxColor(CasinoDraw[1], 0x000000AA),TextDrawBoxColor(CasinoDraw[2], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[3], 0x000000AA),TextDrawBoxColor(CasinoDraw[4], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[5], 0x000000AA),TextDrawBoxColor(CasinoDraw[6], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[7], 0x000000AA);
  623. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0),step2 = 2;
  624. }
  625. }
  626. case 2:
  627. {
  628. foreach(new i:Player)
  629. {
  630. HideCasino(i);
  631. TextDrawBoxColor(CasinoDraw[1], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[2], 0x000000AA),TextDrawBoxColor(CasinoDraw[3], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[4], 0x000000AA),TextDrawBoxColor(CasinoDraw[5], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[6], 0x000000AA),TextDrawBoxColor(CasinoDraw[7], 0xFF0000AA);
  632. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0),step2 = 1;
  633. }
  634. }
  635. }
  636. return true;
  637. }
  638. //------------------------------------------------------------------------------
  639. forward TextDrawProhod2();
  640. public TextDrawProhod2() // GREEN
  641. {
  642. if(step2 == 0) step2 = 1;
  643. step3 ++;
  644. switch(step2)
  645. {
  646. case 1:
  647. {
  648. foreach(new i:Player)
  649. {
  650. HideCasino(i);
  651. TextDrawBoxColor(CasinoDraw[1], 0x000000AA),TextDrawBoxColor(CasinoDraw[2], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[3], 0x000000AA),TextDrawBoxColor(CasinoDraw[4], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[5], 0x000000AA),TextDrawBoxColor(CasinoDraw[6], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[7], 0x000000AA);
  652. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0),step2 = 2;
  653. }
  654. }
  655. case 2:
  656. {
  657. foreach(new i:Player)
  658. {
  659. HideCasino(i);
  660. TextDrawBoxColor(CasinoDraw[1], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[2], 0x000000AA),TextDrawBoxColor(CasinoDraw[3], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[4], 0x000000AA),TextDrawBoxColor(CasinoDraw[5], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[6], 0x000000AA),TextDrawBoxColor(CasinoDraw[7], 0xFF0000AA);
  661. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0);
  662. if(step3 == 16) step2 = 3;
  663. else step2 = 1;
  664. }
  665. }
  666. case 3:
  667. {
  668. foreach(new i:Player)
  669. {
  670. HideCasino(i);
  671. TextDrawBoxColor(CasinoDraw[1], 0x00FF00AA),TextDrawBoxColor(CasinoDraw[2], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[3], 0x000000AA),TextDrawBoxColor(CasinoDraw[4], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[5], 0x000000AA),TextDrawBoxColor(CasinoDraw[6], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[7], 0x000000AA);
  672. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0);
  673. step2 = 4;
  674. }
  675. }
  676. case 4:
  677. {
  678. foreach(new i:Player)
  679. {
  680. HideCasino(i);
  681. TextDrawBoxColor(CasinoDraw[1], 0x000000AA),TextDrawBoxColor(CasinoDraw[2], 0x00FF00AA),TextDrawBoxColor(CasinoDraw[3], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[4], 0x000000AA),TextDrawBoxColor(CasinoDraw[5], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[6], 0x000000AA),TextDrawBoxColor(CasinoDraw[7], 0xFF0000AA);
  682. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0);
  683. step2 = 5;
  684. }
  685. }
  686. case 5:
  687. {
  688. foreach(new i:Player)
  689. {
  690. HideCasino(i);
  691. TextDrawBoxColor(CasinoDraw[1], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[2], 0x000000AA),TextDrawBoxColor(CasinoDraw[3], 0x00FF00AA),TextDrawBoxColor(CasinoDraw[4], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[5], 0x000000AA),TextDrawBoxColor(CasinoDraw[6], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[7], 0x000000AA);
  692. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0);
  693. }
  694. }
  695. }
  696. return true;
  697. }
  698. //------------------------------------------------------------------------------
  699. forward TextDrawProhod3();
  700. public TextDrawProhod3() // BLACK
  701. {
  702. if(step2 == 0) step2 ++;
  703. switch(step2)
  704. {
  705. case 1:
  706. {
  707. foreach(new i:Player)
  708. {
  709. HideCasino(i);
  710. TextDrawBoxColor(CasinoDraw[1], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[2], 0x000000AA),TextDrawBoxColor(CasinoDraw[3], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[4], 0x000000AA),TextDrawBoxColor(CasinoDraw[5], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[6], 0x000000AA),TextDrawBoxColor(CasinoDraw[7], 0xFF0000AA);
  711. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0),step2 = 2;
  712. }
  713. }
  714. case 2:
  715. {
  716. foreach(new i:Player)
  717. {
  718. HideCasino(i);
  719. TextDrawBoxColor(CasinoDraw[1], 0x000000AA),TextDrawBoxColor(CasinoDraw[2], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[3], 0x000000AA),TextDrawBoxColor(CasinoDraw[4], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[5], 0x000000AA),TextDrawBoxColor(CasinoDraw[6], 0xFF0000AA),TextDrawBoxColor(CasinoDraw[7], 0x000000AA);
  720. ShowCasino(i),PlayerPlaySound(i,33401,0.0,0.0,0.0),step2 = 1;
  721. }
  722. }
  723. }
  724. return true;
  725. }
  726. //------------------------------------------------------------------------------
  727. forward GlobalServerTimer();
  728. public GlobalServerTimer()
  729. {
  730. foreach(new i:Player)
  731. {
  732. if(RouletteInGame[i] == 1)
  733. {
  734. new newtext[24];
  735. format(newtext, sizeof(newtext), "Balance: %d", GetPlayerMoney(i));
  736. PlayerTextDrawSetString(i,CasinoDrawPlayer[i][0], newtext);
  737. }
  738. }
  739. if(RouletteTime2 >= 1 && RouletteStatus == 1) RouletteTime2 --;
  740. if(RouletteTime == 0 && RouletteStatus == 0) TextDrawSetString(CasinoDraw[11], "Waiting to rolling..."),RouletteStatus = 1,RouletteTime2 = 11,playtime = SetTimer("RouletteGame1", 1000, true);
  741. if(RouletteTime >= 1)
  742. {
  743. RouletteTime --;
  744. if(TotalBet == 0) return TextDrawSetString(CasinoDraw[11], "Waiting for bets..."),RouletteTime = 20;
  745. new newtextt[24];
  746. format(newtextt, sizeof(newtextt), "ROUND STARTS IN: 00:%d", RouletteTime);
  747. TextDrawSetString(CasinoDraw[11], newtextt);
  748. }
  749. return 1;
  750. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement