View difference between Paste ID: ceH9ACzZ and DDdcrdQg
SHOW: | | - or go back to the newest paste.
1
2
#include <a_samp>
3
4-
new pickup,string[100];
4+
new pickup,pickup1,pickup2,string[100];
5
6
public OnGameModeInit()
7
{
8
	CreateObject(5170,3034.4829102,761.2100220,32.9189987,0.0000000,0.0000000,0.0000000); //object(imnrmpy2_las2) (1)
9
	CreateObject(18765,2995.7600098,761.4390259,34.3610001,0.0000000,0.0000000,0.0000000); //object(concrete10mx10mx5m) (1)
10
	CreateObject(5170,3088.5009766,763.5189819,32.9189987,0.0000000,328.0000000,0.0000000); //object(imnrmpy2_las2) (2)
11
	CreateObject(5774,3126.5991211,765.2050171,49.3110008,0.0000000,0.0000000,0.0000000); //object(garage01_lawn) (1)
12
	CreateObject(11494,3150.8798828,766.2470093,52.1479988,0.0000000,0.0000000,316.0000000); //object(des_rnchbhous) (1)
13
	CreateObject(11494,3159.7709961,768.5989990,52.1479988,0.0000000,34.0000000,315.9997559); //object(des_rnchbhous) (2)
14
	CreateObject(11494,3169.0991211,768.0780029,52.1479988,0.0000000,333.9971924,315.9942627); //object(des_rnchbhous) (3)
15
	CreateObject(5401,3188.6479492,763.4940186,56.4819984,0.0000000,0.0000000,0.0000000); //object(laegarages1nw) (1)
16
	CreateObject(3886,3213.8168945,761.7420044,56.6819992,0.0000000,0.0000000,268.0000000); //object(ws_jettynol_sfx) (1)
17
	CreateObject(3886,3227.9431152,760.9929810,58.6819992,0.0000000,0.0000000,267.9949951); //object(ws_jettynol_sfx) (2)
18
	CreateObject(16502,3246.6520996,762.1870117,55.3209991,0.0000000,0.0000000,178.0000000); //object(cn2_jetty1) (1)
19-
	CreateObject(7347,3300.7709961,767.8829956,70.1449966,0.0000000,0.0000000,88.0000000); //object(vgsn_pipeworks01) (1)
19+
	CreateObject(7347,3300.7705078,767.8828125,70.1449966,0.0000000,0.0000000,87.9949951); //object(vgsn_pipeworks01) (1)
20
	CreateObject(3998,3338.2480469,731.3880005,92.5370026,0.0000000,0.0000000,176.0000000); //object(court1_lan) (1)
21
	CreateObject(13644,3339.7060547,736.5449829,101.8840027,0.0000000,0.0000000,266.0000000); //object(steps) (1)
22
	CreateObject(3374,3333.5739746,704.7319946,103.7350006,0.0000000,0.0000000,356.0000000); //object(sw_haybreak02) (1)
23
	CreateObject(3374,3333.0390625,697.9849854,103.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (2)
24
	CreateObject(3374,3332.7141113,690.9520264,103.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (3)
25
	CreateObject(3374,3331.4951172,683.0449829,103.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (4)
26-
	CreateObject(10043,3334.4550781,636.3939819,97.8089981,0.0000000,0.0000000,264.0000000); //object(vicstuff_sfe6004) (1)
26+
	CreateObject(10043,3330.1879883,637.5200195,98.0050049,0.0000000,0.0000000,267.9959717); //object(vicstuff_sfe6004) (1)
27
	CreateObject(3374,3341.3669434,640.5880127,100.7350006,0.0000000,0.0000000,353.9954834); //object(sw_haybreak02) (5)
28
	CreateObject(3374,3339.5900879,635.9169922,103.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (6)
29
	CreateObject(3374,3329.1120605,622.1500244,108.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (7)
30
	CreateObject(3374,3328.9040527,617.9050293,111.7350006,0.0000000,0.0000000,355.9954834); //object(sw_haybreak02) (8)
31
	CreateObject(18766,3079.3979492,763.4019775,31.2150002,0.0000000,0.0000000,90.0000000); //object(concrete10mx1mx5m) (1)
32
	CreateObject(18766,3093.9331055,763.4509888,40.1739998,0.0000000,0.0000000,90.0000000); //object(concrete10mx1mx5m) (2)
33-
	pickup = CreatePickup(1274,2,3326.4519043,602.8969727,117.7789993,-1);
33+
	CreateObject(3940,3329.9851074,583.6890259,119.1039963,0.0000000,0.0000000,358.0000000); //object(comms01) (1)
34
	CreateObject(4123,3355.7770996,536.5020142,119.5240021,0.0000000,0.0000000,266.0000000); //object(cityhallblock1_lan) (1)
35
	CreateObject(1698,3329.0620117,534.8099976,119.3440018,0.0000000,0.0000000,356.0000000); //object(esc_step8) (1)
36
	CreateObject(1698,3349.7260742,520.5280151,126.0110016,0.0000000,0.0000000,84.0000000); //object(esc_step8) (2)
37
	CreateObject(1698,3353.2150879,520.2540283,129.0110016,0.0000000,0.0000000,83.9959717); //object(esc_step8) (3)
38
	CreateObject(18764,3391.0849609,518.4260254,132.9680023,0.0000000,0.0000000,0.0000000); //object(concrete5mx5mx5m) (1)
39
	CreateObject(18765,3398.9389648,517.8690186,135.1060028,0.0000000,0.0000000,0.0000000); //object(concrete10mx10mx5m) (2)
40
	CreateObject(4886,3433.2580566,521.9310303,140.5729980,0.0000000,0.0000000,4.0000000); //object(gngspwnhus1_las) (1)
41
	CreateObject(5448,3500.5471191,519.1909790,139.9689941,0.0000000,0.0000000,0.0000000); //object(laechicano05) (1)
42
	CreateObject(18764,3385.7580566,518.2119751,131.4340057,0.0000000,0.0000000,0.0000000); //object(concrete5mx5mx5m) (2)
43
	CreateObject(1698,3404.4741211,518.2500000,141.1660004,0.0000000,0.0000000,86.0000000); //object(esc_step8) (4)
44
	CreateObject(7347,3589.4790039,510.3609924,165.1450043,0.0000000,0.0000000,78.0000000); //object(vgsn_pipeworks01) (1)
45
	CreateObject(13749,3630.7241211,482.0199890,200.4530029,0.0000000,0.0000000,42.0000000); //object(cunte_curvesteps1) (1)
46
	CreateObject(18768,3647.9970703,470.3680115,193.4320068,0.0000000,0.0000000,0.0000000); //object(skydiveplatform1) (1)
47
	CreateObject(16003,3664.2370605,467.6510010,195.8190002,0.0000000,0.0000000,0.0000000); //object(drvin_ticket) (1)
48
	CreateObject(16003,3671.0070801,467.7850037,195.8190002,0.0000000,0.0000000,0.0000000); //object(drvin_ticket) (2)
49
	CreateObject(16003,3678.2629395,467.6419983,195.8190002,0.0000000,20.0000000,0.0000000); //object(drvin_ticket) (3)
50
	CreateObject(5711,3694.6899414,469.8179932,199.7189941,0.0000000,0.0000000,269.9999695); //object(cem02_law) (1)
51
	CreateObject(5710,3737.7680664,466.7579956,200.1609955,0.0000000,0.0000000,269.9999695); //object(cem01_law) (1)
52
	CreateObject(3702,3781.2561035,470.9859924,208.8370056,0.0000000,0.0000000,269.9999695); //object(barrio6b_lae2) (1)
53
	CreateObject(18764,3759.5100098,470.6220093,204.4660034,0.0000000,0.0000000,0.0000000); //object(concrete5mx5mx5m) (3)
54
	CreateObject(18762,3757.0100098,470.3540039,204.4660034,0.0000000,276.0000000,0.0000000); //object(concrete1mx1mx5m) (1)
55
	CreateObject(10289,3830.6030273,498.9609985,160.6670074,0.0000000,0.0000000,270.0000000); //object(tempsf_3_sfe) (1)
56
	CreateObject(18762,3843.2319336,471.2170105,204.6999969,0.0000000,271.9999695,0.0000000); //object(concrete1mx1mx5m) (2)
57
	CreateObject(18762,3845.9938965,471.2239990,207.6999969,0.0000000,271.9994812,2.0000000); //object(concrete1mx1mx5m) (3)
58
	pickup = CreatePickup(1274,2,3861.4589844,474.2080078,211.8329926,-1);
59
	pickup1 = CreatePickup(1582,2,3534.6440430,510.9949951,146.5579987,-1);
60
	pickup2 = CreatePickup(1582,2,3326.4519043,602.8969727,117.7789993,-1);
61
62
	return 1;
63
}
64
65
public OnGameModeExit()
66
{
67
	return 1;
68
}
69
70
public OnPlayerCommandText(playerid, cmdtext[])
71
{
72
	if(!strcmp("/ParkourLv", cmdtext, true, 10))
73
	{
74
  		if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),3034.4829102,761.2100220,36.9189987);
75
  		else SetPlayerPos(playerid,3034.4829102,761.2100220,36.9189987);
76
  		format(string,sizeof(string),"Hráč %s sa teleportoval na /ParkourLv",Meno(playerid));
77
  		SendClientMessageToAll(0xFF9700FF,string);
78
		return 1;
79
	}
80
	return 0;
81
}
82
83
public OnPlayerPickUpPickup(playerid, pickupid)
84
{
85
	if(pickupid == pickup)
86
	{
87
		GivePlayerMoney(playerid, 100000);
88
		format(string, 100, "Hráč %s našiel bonus na /parkourLv.", Meno(playerid));
89
		SendClientMessageToAll(0xFF9700FF, string);
90
	}
91
	if(pickupid == pickup1)
92
 	{
93
 	     SetPlayerHealth(playerid, 100);
94
	}
95
	if(pickupid == pickup2)
96
 	{
97
 		SetPlayerHealth(playerid, 100);
98
 	}
99
	return 1;
100
}
101
102
stock Meno(playerid)
103
{
104
	new name[MAX_PLAYER_NAME];
105
 	GetPlayerName(playerid,name,24);
106
 	return name;
107
}