Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =========== STOCK ===============
- stock IsAparat(playerid)
- {
- 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) ||
- 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) ||
- 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) ||
- PlayerToPoint(1.0,playerid,1951.65918, -1770.67383, 13.62280) || PlayerToPoint(1.0,playerid,1952.67859, -1771.72595, 13.62280)) return true;
- return false;
- }
- ================ OnGameModeInit ===============
- //==== Gare aparatebis ====//
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1414.9816,-1714.2020,13.5469,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1416.6348,-1715.9486,13.5469,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1414.9077,-1717.5989,13.5469,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1413.2518,-1715.8782,13.5469,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1359.6738,-1749.7487,13.3792,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1359.7007,-1752.7053,13.3662,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1359.6956,-1755.1917,13.3553,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1949.9546,-1771.7478,13.5469,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1951.6390,-1773.4312,13.5469,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1953.3335,-1771.7345,13.5469,7.0,0,1);
- Create3DTextLabel("{00D900}Daachire: 'ALT'",COLOR_WHITE,1951.6547,-1770.0460,13.5469,7.0,0,1);
- ================== OnPlayerKeyStateChange (NewKeys) =================
- if(newkeys == 1024)//aparatebis
- {
- if(IsAparat(playerid))
- {
- if(PlayerInfo[playerid][pLogin] == 0) return true;
- if(PlayerInfo[playerid][pCash] < 20) return SendClientMessage(playerid, COLOR_GREY, "Sachiroa Minimum 20$");
- if(!IsAparat(playerid)) return SendClientMessage(playerid, COLOR_GREY, "{F70000}x {ADAEAD}Ar Xart Aparattan!");
- ApplyAnimation(playerid, "CRIB", "CRIB_Use_Switch",4.0,0,0,0,0,0);
- {
- new chance = random(40);
- if(chance < 4)
- {
- new fuli1 = random(200);
- GameTextForPlayer(playerid,"~g~X-X-X",1500,4);
- format(YCMDstr,sizeof(YCMDstr), "Tqven Moiget %d Dolari",fuli1);
- SendClientMessage(playerid,COLOR_GREEN,YCMDstr);
- PlayerInfo[playerid][pCash] += fuli1;
- }
- if(chance < 38 && chance >= 4)
- {
- GameTextForPlayer(playerid,"~r~X-Y-Z",1500,4);
- }
- if(chance < 40 && chance >= 38)
- {
- new fuli1 = random(100);
- GameTextForPlayer(playerid,"~g~X-X-X",1500,4);
- format(YCMDstr,sizeof(YCMDstr), "Tqven Moiget %d Dolari",fuli1);
- SendClientMessage(playerid,COLOR_GREEN,YCMDstr);
- PlayerInfo[playerid][pCash] += fuli1;
- }
- PlayerInfo[playerid][pCash] -= 20;
- OnPlayerUpdateAc(playerid);
- }
- }
- }
- =============== CreateObject (იქ სადაც მაპები გაქვთ) ==============
- // ==== Gare Aparatebi ====//
- CreateDynamicObject(2778, 1360.48926, -1749.69446, 12.35070, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2778, 1360.51160, -1755.14197, 12.35070, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1568, 1360.70557, -1748.37720, 11.73549, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1568, 1360.67834, -1753.98511, 11.73549, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2778, 1360.52441, -1752.64624, 12.35070, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1568, 1360.65686, -1751.32324, 11.73549, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2778, 1414.97791, -1715.01819, 12.54500, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2778, 1414.06812, -1715.86621, 12.54500, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2778, 1414.89026, -1716.78198, 12.54500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2778, 1415.81702, -1715.94080, 12.54500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1568, 1414.90002, -1715.94031, 11.93340, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2778, 1950.77014, -1771.70203, 12.54570, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2778, 1951.67761, -1770.86157, 12.54570, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2778, 1952.51746, -1771.77185, 12.54570, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2778, 1951.61658, -1772.61572, 12.54569, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1568, 1951.69019, -1771.72339, 12.04443, 0.00000, 0.00000, 0.00000);
- //ავტორი რომან ჯანელიძე
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement