Guest User

Slots By: რომან ჯანელიძე

a guest
Jan 22nd, 2017
310
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. =========== STOCK ===============
  2. stock IsAparat(playerid)
  3. {
  4. if(PlayerToPoint(1.0,playerid,1360.31311, -1749.75488, 13.47190) || PlayerToPoint(1.0,playerid,1360.35669, -1755.16174, 13.47190) || PlayerToPoint(1.0,playerid,1360.36133, -1752.66772, 13.47190) ||
  5. PlayerToPoint(1.0,playerid,1414.96228, -1716.94250, 13.60450) || PlayerToPoint(1.0,playerid,1415.96033, -1715.89294, 13.60450) || PlayerToPoint(1.0,playerid,1413.91394, -1715.88025, 13.60450) ||
  6. PlayerToPoint(1.0,playerid,1414.92346, -1714.82532, 13.60450) || PlayerToPoint(1.0,playerid,1950.60242, -1771.74524, 13.62280) || PlayerToPoint(1.0,playerid,1951.64050, -1772.79541, 13.62280) ||
  7. PlayerToPoint(1.0,playerid,1951.65918, -1770.67383, 13.62280) || PlayerToPoint(1.0,playerid,1952.67859, -1771.72595, 13.62280)) return true;
  8. return false;
  9. }
  10.  
  11.  
  12.  
  13. ================ OnGameModeInit ===============
  14. //==== Gare aparatebis ====//
  15. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1414.9816,-1714.2020,13.5469,7.0,0,1);
  16. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1416.6348,-1715.9486,13.5469,7.0,0,1);
  17. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1414.9077,-1717.5989,13.5469,7.0,0,1);
  18. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1413.2518,-1715.8782,13.5469,7.0,0,1);
  19. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1359.6738,-1749.7487,13.3792,7.0,0,1);
  20. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1359.7007,-1752.7053,13.3662,7.0,0,1);
  21. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1359.6956,-1755.1917,13.3553,7.0,0,1);
  22. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1949.9546,-1771.7478,13.5469,7.0,0,1);
  23. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1951.6390,-1773.4312,13.5469,7.0,0,1);
  24. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1953.3335,-1771.7345,13.5469,7.0,0,1);
  25. Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1951.6547,-1770.0460,13.5469,7.0,0,1);
  26.  
  27.  
  28.  
  29.  
  30. ================== OnPlayerKeyStateChange (NewKeys) =================
  31.  
  32. if(newkeys == 1024)//aparatebis
  33. {
  34. if(IsAparat(playerid))
  35. {
  36. if(PlayerInfo[playerid][pLogin] == 0) return true;
  37. if(PlayerInfo[playerid][pCash] < 20) return SendClientMessage(playerid, COLOR_GREY, "Sachiroa Minimum 20$");
  38. if(!IsAparat(playerid)) return SendClientMessage(playerid, COLOR_GREY, "{F70000}x {ADAEAD}Ar Xart Aparattan!");
  39. ApplyAnimation(playerid, "CRIB", "CRIB_Use_Switch",4.0,0,0,0,0,0);
  40. {
  41. new chance = random(40);
  42. if(chance < 4)
  43. {
  44. new fuli1 = random(200);
  45. GameTextForPlayer(playerid,"~g~X-X-X",1500,4);
  46. format(YCMDstr,sizeof(YCMDstr), "Tqven Moiget %d Dolari",fuli1);
  47. SendClientMessage(playerid,COLOR_GREEN,YCMDstr);
  48. PlayerInfo[playerid][pCash] += fuli1;
  49. }
  50. if(chance < 38 && chance >= 4)
  51. {
  52. GameTextForPlayer(playerid,"~r~X-Y-Z",1500,4);
  53. }
  54. if(chance < 40 && chance >= 38)
  55. {
  56. new fuli1 = random(100);
  57. GameTextForPlayer(playerid,"~g~X-X-X",1500,4);
  58. format(YCMDstr,sizeof(YCMDstr), "Tqven Moiget %d Dolari",fuli1);
  59. SendClientMessage(playerid,COLOR_GREEN,YCMDstr);
  60. PlayerInfo[playerid][pCash] += fuli1;
  61. }
  62. PlayerInfo[playerid][pCash] -= 20;
  63. OnPlayerUpdateAc(playerid);
  64. }
  65. }
  66. }
  67.  
  68.  
  69.  
  70.  
  71. =============== CreateObject (იქ სადაც მაპები გაქვთ) ==============
  72. // ==== Gare Aparatebi ====//
  73. CreateDynamicObject(2778, 1360.48926, -1749.69446, 12.35070, 0.00000, 0.00000, -90.00000);
  74. CreateDynamicObject(2778, 1360.51160, -1755.14197, 12.35070, 0.00000, 0.00000, -90.00000);
  75. CreateDynamicObject(1568, 1360.70557, -1748.37720, 11.73549, 0.00000, 0.00000, 0.00000);
  76. CreateDynamicObject(1568, 1360.67834, -1753.98511, 11.73549, 0.00000, 0.00000, 0.00000);
  77. CreateDynamicObject(2778, 1360.52441, -1752.64624, 12.35070, 0.00000, 0.00000, -90.00000);
  78. CreateDynamicObject(1568, 1360.65686, -1751.32324, 11.73549, 0.00000, 0.00000, 0.00000);
  79. CreateDynamicObject(2778, 1414.97791, -1715.01819, 12.54500, 0.00000, 0.00000, 180.00000);
  80. CreateDynamicObject(2778, 1414.06812, -1715.86621, 12.54500, 0.00000, 0.00000, -90.00000);
  81. CreateDynamicObject(2778, 1414.89026, -1716.78198, 12.54500, 0.00000, 0.00000, 0.00000);
  82. CreateDynamicObject(2778, 1415.81702, -1715.94080, 12.54500, 0.00000, 0.00000, 90.00000);
  83. CreateDynamicObject(1568, 1414.90002, -1715.94031, 11.93340, 0.00000, 0.00000, 0.00000);
  84. CreateDynamicObject(2778, 1950.77014, -1771.70203, 12.54570, 0.00000, 0.00000, -90.00000);
  85. CreateDynamicObject(2778, 1951.67761, -1770.86157, 12.54570, 0.00000, 0.00000, 180.00000);
  86. CreateDynamicObject(2778, 1952.51746, -1771.77185, 12.54570, 0.00000, 0.00000, 90.00000);
  87. CreateDynamicObject(2778, 1951.61658, -1772.61572, 12.54569, 0.00000, 0.00000, 0.00000);
  88. CreateDynamicObject(1568, 1951.69019, -1771.72339, 12.04443, 0.00000, 0.00000, 0.00000);
  89.  
  90. //ავტორი რომან ჯანელიძე
RAW Paste Data