Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new pickup,pickup1,pickup2,string[100];
- public OnGameModeInit()
- {
- CreateObject(5170,3034.4829102,761.2100220,32.9189987,0.0000000,0.0000000,0.0000000); //object(imnrmpy2_las2) (1)
- CreateObject(18765,2995.7600098,761.4390259,34.3610001,0.0000000,0.0000000,0.0000000); //object(concrete10mx10mx5m) (1)
- CreateObject(5170,3088.5009766,763.5189819,32.9189987,0.0000000,328.0000000,0.0000000); //object(imnrmpy2_las2) (2)
- CreateObject(5774,3126.5991211,765.2050171,49.3110008,0.0000000,0.0000000,0.0000000); //object(garage01_lawn) (1)
- CreateObject(11494,3150.8798828,766.2470093,52.1479988,0.0000000,0.0000000,316.0000000); //object(des_rnchbhous) (1)
- CreateObject(11494,3159.7709961,768.5989990,52.1479988,0.0000000,34.0000000,315.9997559); //object(des_rnchbhous) (2)
- CreateObject(11494,3169.0991211,768.0780029,52.1479988,0.0000000,333.9971924,315.9942627); //object(des_rnchbhous) (3)
- CreateObject(5401,3188.6479492,763.4940186,56.4819984,0.0000000,0.0000000,0.0000000); //object(laegarages1nw) (1)
- CreateObject(3886,3213.8168945,761.7420044,56.6819992,0.0000000,0.0000000,268.0000000); //object(ws_jettynol_sfx) (1)
- CreateObject(3886,3227.9431152,760.9929810,58.6819992,0.0000000,0.0000000,267.9949951); //object(ws_jettynol_sfx) (2)
- CreateObject(16502,3246.6520996,762.1870117,55.3209991,0.0000000,0.0000000,178.0000000); //object(cn2_jetty1) (1)
- CreateObject(7347,3300.7705078,767.8828125,70.1449966,0.0000000,0.0000000,87.9949951); //object(vgsn_pipeworks01) (1)
- CreateObject(3998,3338.2480469,731.3880005,92.5370026,0.0000000,0.0000000,176.0000000); //object(court1_lan) (1)
- CreateObject(13644,3339.7060547,736.5449829,101.8840027,0.0000000,0.0000000,266.0000000); //object(steps) (1)
- CreateObject(3374,3333.5739746,704.7319946,103.7350006,0.0000000,0.0000000,356.0000000); //object(sw_haybreak02) (1)
- CreateObject(3374,3333.0390625,697.9849854,103.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (2)
- CreateObject(3374,3332.7141113,690.9520264,103.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (3)
- CreateObject(3374,3331.4951172,683.0449829,103.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (4)
- CreateObject(10043,3330.1879883,637.5200195,98.0050049,0.0000000,0.0000000,267.9959717); //object(vicstuff_sfe6004) (1)
- CreateObject(3374,3341.3669434,640.5880127,100.7350006,0.0000000,0.0000000,353.9954834); //object(sw_haybreak02) (5)
- CreateObject(3374,3339.5900879,635.9169922,103.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (6)
- CreateObject(3374,3329.1120605,622.1500244,108.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (7)
- CreateObject(3374,3328.9040527,617.9050293,111.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (8)
- CreateObject(18766,3079.3979492,763.4019775,31.2150002,0.0000000,0.0000000,90.0000000); //object(concrete10mx1mx5m) (1)
- CreateObject(18766,3093.9331055,763.4509888,40.1739998,0.0000000,0.0000000,90.0000000); //object(concrete10mx1mx5m) (2)
- CreateObject(3940,3329.9851074,583.6890259,119.1039963,0.0000000,0.0000000,358.0000000); //object(comms01) (1)
- CreateObject(4123,3355.7770996,536.5020142,119.5240021,0.0000000,0.0000000,266.0000000); //object(cityhallblock1_lan) (1)
- CreateObject(1698,3329.0620117,534.8099976,119.3440018,0.0000000,0.0000000,356.0000000); //object(esc_step8) (1)
- CreateObject(1698,3349.7260742,520.5280151,126.0110016,0.0000000,0.0000000,84.0000000); //object(esc_step8) (2)
- CreateObject(1698,3353.2150879,520.2540283,129.0110016,0.0000000,0.0000000,83.9959717); //object(esc_step8) (3)
- CreateObject(18764,3391.0849609,518.4260254,132.9680023,0.0000000,0.0000000,0.0000000); //object(concrete5mx5mx5m) (1)
- CreateObject(18765,3398.9389648,517.8690186,135.1060028,0.0000000,0.0000000,0.0000000); //object(concrete10mx10mx5m) (2)
- CreateObject(4886,3433.2580566,521.9310303,140.5729980,0.0000000,0.0000000,4.0000000); //object(gngspwnhus1_las) (1)
- CreateObject(5448,3500.5471191,519.1909790,139.9689941,0.0000000,0.0000000,0.0000000); //object(laechicano05) (1)
- CreateObject(18764,3385.7580566,518.2119751,131.4340057,0.0000000,0.0000000,0.0000000); //object(concrete5mx5mx5m) (2)
- CreateObject(1698,3404.4741211,518.2500000,141.1660004,0.0000000,0.0000000,86.0000000); //object(esc_step8) (4)
- CreateObject(7347,3589.4790039,510.3609924,165.1450043,0.0000000,0.0000000,78.0000000); //object(vgsn_pipeworks01) (1)
- CreateObject(13749,3630.7241211,482.0199890,200.4530029,0.0000000,0.0000000,42.0000000); //object(cunte_curvesteps1) (1)
- CreateObject(18768,3647.9970703,470.3680115,193.4320068,0.0000000,0.0000000,0.0000000); //object(skydiveplatform1) (1)
- CreateObject(16003,3664.2370605,467.6510010,195.8190002,0.0000000,0.0000000,0.0000000); //object(drvin_ticket) (1)
- CreateObject(16003,3671.0070801,467.7850037,195.8190002,0.0000000,0.0000000,0.0000000); //object(drvin_ticket) (2)
- CreateObject(16003,3678.2629395,467.6419983,195.8190002,0.0000000,20.0000000,0.0000000); //object(drvin_ticket) (3)
- CreateObject(5711,3694.6899414,469.8179932,199.7189941,0.0000000,0.0000000,269.9999695); //object(cem02_law) (1)
- CreateObject(5710,3737.7680664,466.7579956,200.1609955,0.0000000,0.0000000,269.9999695); //object(cem01_law) (1)
- CreateObject(3702,3781.2561035,470.9859924,208.8370056,0.0000000,0.0000000,269.9999695); //object(barrio6b_lae2) (1)
- CreateObject(18764,3759.5100098,470.6220093,204.4660034,0.0000000,0.0000000,0.0000000); //object(concrete5mx5mx5m) (3)
- CreateObject(18762,3757.0100098,470.3540039,204.4660034,0.0000000,276.0000000,0.0000000); //object(concrete1mx1mx5m) (1)
- CreateObject(10289,3830.6030273,498.9609985,160.6670074,0.0000000,0.0000000,270.0000000); //object(tempsf_3_sfe) (1)
- CreateObject(18762,3843.2319336,471.2170105,204.6999969,0.0000000,271.9999695,0.0000000); //object(concrete1mx1mx5m) (2)
- CreateObject(18762,3845.9938965,471.2239990,207.6999969,0.0000000,271.9994812,2.0000000); //object(concrete1mx1mx5m) (3)
- pickup = CreatePickup(1274,2,3861.4589844,474.2080078,211.8329926,-1);
- pickup1 = CreatePickup(1582,2,3534.6440430,510.9949951,146.5579987,-1);
- pickup2 = CreatePickup(1582,2,3326.4519043,602.8969727,117.7789993,-1);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp("/ParkourLv", cmdtext, true, 10))
- {
- if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),3034.4829102,761.2100220,36.9189987);
- else SetPlayerPos(playerid,3034.4829102,761.2100220,36.9189987);
- format(string,sizeof(string),"Hráč %s sa teleportoval na /ParkourLv",Meno(playerid));
- SendClientMessageToAll(0xFF9700FF,string);
- return 1;
- }
- return 0;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == pickup)
- {
- GivePlayerMoney(playerid, 100000);
- format(string, 100, "Hráč %s našiel bonus na /parkourLv.", Meno(playerid));
- SendClientMessageToAll(0xFF9700FF, string);
- }
- if(pickupid == pickup1)
- {
- SetPlayerHealth(playerid, 100);
- }
- if(pickupid == pickup2)
- {
- SetPlayerHealth(playerid, 100);
- }
- return 1;
- }
- stock Meno(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,24);
- return name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement