SHOW:
|
|
- or go back to the newest paste.
1 | #define FILTERSCRIPT | |
2 | ||
3 | #include <a_samp> | |
4 | #include <streamer> | |
5 | ||
6 | #if defined FILTERSCRIPT | |
7 | #define PRESSED(%0) \ | |
8 | (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) | |
9 | ||
10 | - | #define COLOR_GREEN 0x00FF00FF |
10 | + | new Text:Armes; |
11 | - | #define COLOR_RED 0xFF0000AA |
11 | + | |
12 | new Text:Desert; | |
13 | - | new Text:Weapon; |
13 | + | |
14 | new Text:Sawnoff; | |
15 | new Text:shotgun; | |
16 | new Text:Combat; | |
17 | new Text:MP5; | |
18 | new Text:AK47; | |
19 | new Text:M4; | |
20 | new Text:Country; | |
21 | new Text:rifle; | |
22 | new Text:eagle; | |
23 | ||
24 | new Text:Box; | |
25 | new Text:Pressy; | |
26 | new Text:Pressn; | |
27 | ||
28 | new Text:Munitions; | |
29 | new Text:Munitions200; | |
30 | new Text:Munitions500; | |
31 | - | new Text:Ammo; |
31 | + | new Text:Munitions700; |
32 | - | new Text:Ammo200; |
32 | + | |
33 | - | new Text:Ammo500; |
33 | + | new Text:Prix; |
34 | - | new Text:Ammo700; |
34 | + | new Text:Prix9000; |
35 | new Text:Prix8000; | |
36 | - | new Text:Price; |
36 | + | new Text:Prix7000; |
37 | - | new Text:Price9000; |
37 | + | new Text:Prix3000; |
38 | - | new Text:Price8000; |
38 | + | new Text:Prix2000; |
39 | - | new Text:Price7000; |
39 | + | |
40 | - | new Text:Price3000; |
40 | + | |
41 | - | new Text:Price2000; |
41 | + | |
42 | CreateDynamicObject(346, -1051.8517,2584.9487,141.2628, 0.00, 0.00, 4.00); | |
43 | - | public OnFilterScriptInit() |
43 | + | CreateDynamicObject(348, -1050.8779,2584.9504,141.2628, 0.00, 0.00, 4.00); |
44 | CreateDynamicObject(349, -1049.9031,2584.8923,141.2628, 0.00, 0.00, 4.00); | |
45 | - | print("\n--------------------------------------"); |
45 | + | CreateDynamicObject(350, -1048.9385,2584.8347,141.2628, 0.00, 0.00, 4.00); |
46 | - | print(" Weapon Shop FilterScript by MechaTech"); |
46 | + | CreateDynamicObject(351, -1048.1090,2584.8521,141.2628, 0.00, 0.00, 4.00); |
47 | - | print("--------------------------------------\n"); |
47 | + | CreateDynamicObject(353, -1047.0414,2585.0024,141.2628, 0.00, 0.00, 4.00); |
48 | - | return 1; |
48 | + | CreateDynamicObject(355, -1046.0942,2584.9468,141.2628, 0.00, 0.00, 4.00); |
49 | CreateDynamicObject(356, -1045.2207,2584.8953,141.2628, 0.00, 0.00, 4.00); | |
50 | CreateDynamicObject(357, -1044.7114,2589.9053,141.2628, 0.00, 0.00, 4.00); | |
51 | - | public OnFilterScriptExit() |
51 | + | |
52 | Armes = TextDrawCreate(509.000000, 280.000000, "Armes:"); | |
53 | - | return 1; |
53 | + | TextDrawBackgroundColor(Armes, 255); |
54 | TextDrawFont(Armes, 1); | |
55 | TextDrawLetterSize(Armes, 0.470000, 1.700000); | |
56 | - | #else |
56 | + | TextDrawColor(Armes, -16776961); |
57 | TextDrawSetOutline(Armes, 0); | |
58 | - | main() |
58 | + | TextDrawSetProportional(Armes, 1); |
59 | TextDrawSetShadow(Armes, 1); | |
60 | - | print("\n----------------------------------"); |
60 | + | |
61 | - | print(" Blank Gamemode by your name here"); |
61 | + | ninemm = TextDrawCreate(579.000000, 281.000000, "9mm Pistolet"); |
62 | - | print("----------------------------------\n"); |
62 | + | TextDrawBackgroundColor(ninemm, 255); |
63 | TextDrawFont(ninemm, 1); | |
64 | TextDrawLetterSize(ninemm, 0.470000, 1.700000); | |
65 | - | #endif |
65 | + | TextDrawColor(ninemm, -1); |
66 | TextDrawSetOutline(ninemm, 0); | |
67 | TextDrawSetProportional(ninemm, 1); | |
68 | TextDrawSetShadow(ninemm, 1); | |
69 | - | CreateDynamicObject(346, 310.69, -163.25, 999.62, 0.00, 0.00, 0.00); |
69 | + | |
70 | - | CreateDynamicObject(348, 309.95, -162.45, 999.62, 0.00, 0.00, 90.00); |
70 | + | Desert = TextDrawCreate(579.000000, 281.000000, "Desert-"); |
71 | - | CreateDynamicObject(349, 311.69, -162.64, 999.62, 0.00, 12.00, 96.00); |
71 | + | TextDrawBackgroundColor(Desert, 255); |
72 | - | CreateDynamicObject(350, 310.10, -161.51, 999.60, 0.00, 4.00, 0.00); |
72 | + | TextDrawFont(Desert, 1); |
73 | - | CreateDynamicObject(351, 311.46, -161.44, 999.62, 0.00, 0.00, 186.00); |
73 | + | TextDrawLetterSize(Desert, 0.470000, 1.700000); |
74 | - | CreateDynamicObject(353, 314.99, -161.50, 999.64, 0.00, 0.00, 4.00); |
74 | + | TextDrawColor(Desert, -1); |
75 | - | CreateDynamicObject(355, 315.92, -162.31, 999.66, 0.00, 0.00, -86.00); |
75 | + | TextDrawSetOutline(Desert, 0); |
76 | - | CreateDynamicObject(356, 314.96, -163.18, 999.66, 0.00, 0.00, 4.00); |
76 | + | TextDrawSetProportional(Desert, 1); |
77 | - | CreateDynamicObject(357, 314.28, -162.09, 999.62, 0.00, 6.00, -84.00); |
77 | + | TextDrawSetShadow(Desert, 1); |
78 | eagle = TextDrawCreate(510.000000, 299.000000, "eagle"); | |
79 | - | Weapon = TextDrawCreate(509.000000, 280.000000, "Weapon:"); |
79 | + | TextDrawBackgroundColor(eagle, 255); |
80 | - | TextDrawBackgroundColor(Weapon, 255); |
80 | + | TextDrawFont(eagle, 1); |
81 | - | TextDrawFont(Weapon, 1); |
81 | + | TextDrawLetterSize(eagle, 0.470000, 1.700000); |
82 | - | TextDrawLetterSize(Weapon, 0.470000, 1.700000); |
82 | + | TextDrawColor(eagle, -1); |
83 | - | TextDrawColor(Weapon, -16776961); |
83 | + | TextDrawSetOutline(eagle, 0); |
84 | - | TextDrawSetOutline(Weapon, 0); |
84 | + | TextDrawSetProportional(eagle, 1); |
85 | - | TextDrawSetProportional(Weapon, 1); |
85 | + | TextDrawSetShadow(eagle, 1); |
86 | - | TextDrawSetShadow(Weapon, 1); |
86 | + | |
87 | - | |
87 | + | Shotgun = TextDrawCreate(579.000000, 281.000000, "Shotgun"); |
88 | - | ninemm = TextDrawCreate(579.000000, 281.000000, "9mm"); |
88 | + | TextDrawBackgroundColor(Shotgun, 255); |
89 | - | TextDrawBackgroundColor(ninemm, 255); |
89 | + | TextDrawFont(Shotgun, 1); |
90 | - | TextDrawFont(ninemm, 1); |
90 | + | TextDrawLetterSize(Shotgun, 0.470000, 1.700000); |
91 | - | TextDrawLetterSize(ninemm, 0.470000, 1.700000); |
91 | + | TextDrawColor(Shotgun, -1); |
92 | - | TextDrawColor(ninemm, -1); |
92 | + | TextDrawSetOutline(Shotgun, 0); |
93 | - | TextDrawSetOutline(ninemm, 0); |
93 | + | TextDrawSetProportional(Shotgun, 1); |
94 | - | TextDrawSetProportional(ninemm, 1); |
94 | + | TextDrawSetShadow(Shotgun, 1); |
95 | - | TextDrawSetShadow(ninemm, 1); |
95 | + | |
96 | - | |
96 | + | Sawnoff = TextDrawCreate(579.000000, 281.000000, "Sawnoff"); |
97 | - | Desert = TextDrawCreate(579.000000, 281.000000, "Desert"); |
97 | + | TextDrawBackgroundColor(Sawnoff, 255); |
98 | - | TextDrawBackgroundColor(Desert, 255); |
98 | + | TextDrawFont(Sawnoff, 1); |
99 | - | TextDrawFont(Desert, 1); |
99 | + | TextDrawLetterSize(Sawnoff, 0.470000, 1.700000); |
100 | - | TextDrawLetterSize(Desert, 0.470000, 1.700000); |
100 | + | TextDrawColor(Sawnoff, -1); |
101 | - | TextDrawColor(Desert, -1); |
101 | + | TextDrawSetOutline(Sawnoff, 0); |
102 | - | TextDrawSetOutline(Desert, 0); |
102 | + | TextDrawSetProportional(Sawnoff, 1); |
103 | - | TextDrawSetProportional(Desert, 1); |
103 | + | TextDrawSetShadow(Sawnoff, 1); |
104 | - | TextDrawSetShadow(Desert, 1); |
104 | + | |
105 | - | eagle = TextDrawCreate(510.000000, 299.000000, "eagle"); |
105 | + | Combat = TextDrawCreate(579.000000, 281.000000, "Combat-"); |
106 | - | TextDrawBackgroundColor(eagle, 255); |
106 | + | TextDrawBackgroundColor(Combat, 255); |
107 | - | TextDrawFont(eagle, 1); |
107 | + | TextDrawFont(Combat, 1); |
108 | - | TextDrawLetterSize(eagle, 0.470000, 1.700000); |
108 | + | TextDrawLetterSize(Combat, 0.470000, 1.700000); |
109 | - | TextDrawColor(eagle, -1); |
109 | + | TextDrawColor(Combat, -1); |
110 | - | TextDrawSetOutline(eagle, 0); |
110 | + | TextDrawSetOutline(Combat, 0); |
111 | - | TextDrawSetProportional(eagle, 1); |
111 | + | TextDrawSetProportional(Combat, 1); |
112 | - | TextDrawSetShadow(eagle, 1); |
112 | + | TextDrawSetShadow(Combat, 1); |
113 | - | |
113 | + | |
114 | - | Shotgun = TextDrawCreate(579.000000, 281.000000, "Shotgun"); |
114 | + | shotgun = TextDrawCreate(510.000000, 299.000000, "shotgun"); |
115 | - | TextDrawBackgroundColor(Shotgun, 255); |
115 | + | TextDrawBackgroundColor(shotgun, 255); |
116 | - | TextDrawFont(Shotgun, 1); |
116 | + | TextDrawFont(shotgun, 1); |
117 | - | TextDrawLetterSize(Shotgun, 0.470000, 1.700000); |
117 | + | TextDrawLetterSize(shotgun, 0.470000, 1.700000); |
118 | - | TextDrawColor(Shotgun, -1); |
118 | + | TextDrawColor(shotgun, -1); |
119 | - | TextDrawSetOutline(Shotgun, 0); |
119 | + | TextDrawSetOutline(shotgun, 0); |
120 | - | TextDrawSetProportional(Shotgun, 1); |
120 | + | TextDrawSetProportional(shotgun, 1); |
121 | - | TextDrawSetShadow(Shotgun, 1); |
121 | + | TextDrawSetShadow(shotgun, 1); |
122 | - | |
122 | + | |
123 | - | Sawnoff = TextDrawCreate(579.000000, 281.000000, "Sawnoff"); |
123 | + | MP5 = TextDrawCreate(579.000000, 281.000000, "MP5"); |
124 | - | TextDrawBackgroundColor(Sawnoff, 255); |
124 | + | TextDrawBackgroundColor(MP5, 255); |
125 | - | TextDrawFont(Sawnoff, 1); |
125 | + | TextDrawFont(MP5, 1); |
126 | - | TextDrawLetterSize(Sawnoff, 0.470000, 1.700000); |
126 | + | TextDrawLetterSize(MP5, 0.470000, 1.700000); |
127 | - | TextDrawColor(Sawnoff, -1); |
127 | + | TextDrawColor(MP5, -1); |
128 | - | TextDrawSetOutline(Sawnoff, 0); |
128 | + | TextDrawSetOutline(MP5, 0); |
129 | - | TextDrawSetProportional(Sawnoff, 1); |
129 | + | TextDrawSetProportional(MP5, 1); |
130 | - | TextDrawSetShadow(Sawnoff, 1); |
130 | + | TextDrawSetShadow(MP5, 1); |
131 | - | |
131 | + | |
132 | - | Combat = TextDrawCreate(579.000000, 281.000000, "Combat"); |
132 | + | M4 = TextDrawCreate(579.000000, 281.000000, "M4"); |
133 | - | TextDrawBackgroundColor(Combat, 255); |
133 | + | TextDrawBackgroundColor(M4, 255); |
134 | - | TextDrawFont(Combat, 1); |
134 | + | TextDrawFont(M4, 1); |
135 | - | TextDrawLetterSize(Combat, 0.470000, 1.700000); |
135 | + | TextDrawLetterSize(M4, 0.470000, 1.700000); |
136 | - | TextDrawColor(Combat, -1); |
136 | + | TextDrawColor(M4, -1); |
137 | - | TextDrawSetOutline(Combat, 0); |
137 | + | TextDrawSetOutline(M4, 0); |
138 | - | TextDrawSetProportional(Combat, 1); |
138 | + | TextDrawSetProportional(M4, 1); |
139 | - | TextDrawSetShadow(Combat, 1); |
139 | + | TextDrawSetShadow(M4, 1); |
140 | - | |
140 | + | |
141 | - | shotgun = TextDrawCreate(510.000000, 299.000000, "shotgun"); |
141 | + | AK47 = TextDrawCreate(579.000000, 281.000000, "AK-47"); |
142 | - | TextDrawBackgroundColor(shotgun, 255); |
142 | + | TextDrawBackgroundColor(AK47, 255); |
143 | - | TextDrawFont(shotgun, 1); |
143 | + | TextDrawFont(AK47, 1); |
144 | - | TextDrawLetterSize(shotgun, 0.470000, 1.700000); |
144 | + | TextDrawLetterSize(AK47, 0.470000, 1.700000); |
145 | - | TextDrawColor(shotgun, -1); |
145 | + | TextDrawColor(AK47, -1); |
146 | - | TextDrawSetOutline(shotgun, 0); |
146 | + | TextDrawSetOutline(AK47, 0); |
147 | - | TextDrawSetProportional(shotgun, 1); |
147 | + | TextDrawSetProportional(AK47, 1); |
148 | - | TextDrawSetShadow(shotgun, 1); |
148 | + | TextDrawSetShadow(AK47, 1); |
149 | - | |
149 | + | |
150 | - | MP5 = TextDrawCreate(579.000000, 281.000000, "MP5"); |
150 | + | Country = TextDrawCreate(579.000000, 281.000000, "Country-"); |
151 | - | TextDrawBackgroundColor(MP5, 255); |
151 | + | TextDrawBackgroundColor(Country, 255); |
152 | - | TextDrawFont(MP5, 1); |
152 | + | TextDrawFont(Country, 1); |
153 | - | TextDrawLetterSize(MP5, 0.470000, 1.700000); |
153 | + | TextDrawLetterSize(Country, 0.470000, 1.700000); |
154 | - | TextDrawColor(MP5, -1); |
154 | + | TextDrawColor(Country, -1); |
155 | - | TextDrawSetOutline(MP5, 0); |
155 | + | TextDrawSetOutline(Country, 0); |
156 | - | TextDrawSetProportional(MP5, 1); |
156 | + | TextDrawSetProportional(Country, 1); |
157 | - | TextDrawSetShadow(MP5, 1); |
157 | + | TextDrawSetShadow(Country, 1); |
158 | - | |
158 | + | rifle = TextDrawCreate(510.000000, 299.000000, "rifle"); |
159 | - | M4 = TextDrawCreate(579.000000, 281.000000, "M4"); |
159 | + | TextDrawBackgroundColor(rifle, 255); |
160 | - | TextDrawBackgroundColor(M4, 255); |
160 | + | TextDrawFont(rifle, 1); |
161 | - | TextDrawFont(M4, 1); |
161 | + | TextDrawLetterSize(rifle, 0.470000, 1.700000); |
162 | - | TextDrawLetterSize(M4, 0.470000, 1.700000); |
162 | + | TextDrawColor(rifle, -1); |
163 | - | TextDrawColor(M4, -1); |
163 | + | TextDrawSetOutline(rifle, 0); |
164 | - | TextDrawSetOutline(M4, 0); |
164 | + | TextDrawSetProportional(rifle, 1); |
165 | - | TextDrawSetProportional(M4, 1); |
165 | + | TextDrawSetShadow(rifle, 1); |
166 | - | TextDrawSetShadow(M4, 1); |
166 | + | |
167 | - | |
167 | + | Munitions = TextDrawCreate(510.000000, 330.000000, "Munitions:"); |
168 | - | AK47 = TextDrawCreate(579.000000, 281.000000, "AK-47"); |
168 | + | TextDrawBackgroundColor(Munitions, 255); |
169 | - | TextDrawBackgroundColor(AK47, 255); |
169 | + | TextDrawFont(Munitions, 1); |
170 | - | TextDrawFont(AK47, 1); |
170 | + | TextDrawLetterSize(Munitions, 0.360000, 1.500000); |
171 | - | TextDrawLetterSize(AK47, 0.470000, 1.700000); |
171 | + | TextDrawColor(Munitions, 143263999); |
172 | - | TextDrawColor(AK47, -1); |
172 | + | TextDrawSetOutline(Munitions, 0); |
173 | - | TextDrawSetOutline(AK47, 0); |
173 | + | TextDrawSetProportional(Munitions, 1); |
174 | - | TextDrawSetProportional(AK47, 1); |
174 | + | TextDrawSetShadow(Munitions, 1); |
175 | - | TextDrawSetShadow(AK47, 1); |
175 | + | |
176 | - | |
176 | + | Prix = TextDrawCreate(511.000000, 349.000000, "Prix:"); |
177 | - | Country = TextDrawCreate(579.000000, 281.000000, "Country"); |
177 | + | TextDrawBackgroundColor(Prix, 255); |
178 | - | TextDrawBackgroundColor(Country, 255); |
178 | + | TextDrawFont(Prix, 1); |
179 | - | TextDrawFont(Country, 1); |
179 | + | TextDrawLetterSize(Prix, 0.360000, 1.500000); |
180 | - | TextDrawLetterSize(Country, 0.470000, 1.700000); |
180 | + | TextDrawColor(Prix, 143263999); |
181 | - | TextDrawColor(Country, -1); |
181 | + | TextDrawSetOutline(Prix, 0); |
182 | - | TextDrawSetOutline(Country, 0); |
182 | + | TextDrawSetProportional(Prix, 1); |
183 | - | TextDrawSetProportional(Country, 1); |
183 | + | TextDrawSetShadow(Prix, 1); |
184 | - | TextDrawSetShadow(Country, 1); |
184 | + | |
185 | - | rifle = TextDrawCreate(510.000000, 299.000000, "rifle"); |
185 | + | Pressy = TextDrawCreate(498.000000, 389.000000, "Appuyez sur 'Y' pour acheter l'arme."); |
186 | - | TextDrawBackgroundColor(rifle, 255); |
186 | + | TextDrawBackgroundColor(Pressy, 255); |
187 | - | TextDrawFont(rifle, 1); |
187 | + | TextDrawFont(Pressy, 1); |
188 | - | TextDrawLetterSize(rifle, 0.470000, 1.700000); |
188 | + | TextDrawLetterSize(Pressy, 0.290000, 1.000000); |
189 | - | TextDrawColor(rifle, -1); |
189 | + | TextDrawColor(Pressy, -1); |
190 | - | TextDrawSetOutline(rifle, 0); |
190 | + | TextDrawSetOutline(Pressy, 0); |
191 | - | TextDrawSetProportional(rifle, 1); |
191 | + | TextDrawSetProportional(Pressy, 1); |
192 | - | TextDrawSetShadow(rifle, 1); |
192 | + | TextDrawSetShadow(Pressy, 1); |
193 | - | |
193 | + | |
194 | - | Ammo = TextDrawCreate(510.000000, 330.000000, "Ammo:"); |
194 | + | Pressn = TextDrawCreate(498.000000, 402.000000, "Appuyez sur 'N' pour fermer."); |
195 | - | TextDrawBackgroundColor(Ammo, 255); |
195 | + | TextDrawBackgroundColor(Pressn, 255); |
196 | - | TextDrawFont(Ammo, 1); |
196 | + | TextDrawFont(Pressn, 1); |
197 | - | TextDrawLetterSize(Ammo, 0.360000, 1.500000); |
197 | + | TextDrawLetterSize(Pressn, 0.290000, 1.000000); |
198 | - | TextDrawColor(Ammo, 143263999); |
198 | + | TextDrawColor(Pressn, -1); |
199 | - | TextDrawSetOutline(Ammo, 0); |
199 | + | TextDrawSetOutline(Pressn, 0); |
200 | - | TextDrawSetProportional(Ammo, 1); |
200 | + | TextDrawSetProportional(Pressn, 1); |
201 | - | TextDrawSetShadow(Ammo, 1); |
201 | + | TextDrawSetShadow(Pressn, 1); |
202 | - | |
202 | + | |
203 | - | Price = TextDrawCreate(511.000000, 349.000000, "Price:"); |
203 | + | Box = TextDrawCreate(600.000000, 265.000000, " "); |
204 | - | TextDrawBackgroundColor(Price, 255); |
204 | + | TextDrawAlignment(Box, 2); |
205 | - | TextDrawFont(Price, 1); |
205 | + | TextDrawBackgroundColor(Box, 255); |
206 | - | TextDrawLetterSize(Price, 0.360000, 1.500000); |
206 | + | TextDrawFont(Box, 3); |
207 | - | TextDrawColor(Price, 143263999); |
207 | + | TextDrawLetterSize(Box, 0.349999, 6.699995); |
208 | - | TextDrawSetOutline(Price, 0); |
208 | + | TextDrawColor(Box, 153); |
209 | - | TextDrawSetProportional(Price, 1); |
209 | + | TextDrawSetOutline(Box, 0); |
210 | - | TextDrawSetShadow(Price, 1); |
210 | + | TextDrawSetProportional(Box, 1); |
211 | - | |
211 | + | TextDrawSetShadow(Box, 1); |
212 | - | Pressy = TextDrawCreate(498.000000, 389.000000, "Press 'Y' to buy the weapon."); |
212 | + | TextDrawUseBox(Box, 1); |
213 | - | TextDrawBackgroundColor(Pressy, 255); |
213 | + | TextDrawBoxColor(Box, 153); |
214 | - | TextDrawFont(Pressy, 1); |
214 | + | TextDrawTextSize(Box, 45.000000, 212.000000); |
215 | - | TextDrawLetterSize(Pressy, 0.290000, 1.000000); |
215 | + | |
216 | - | TextDrawColor(Pressy, -1); |
216 | + | Munitions500 = TextDrawCreate(555.000000, 330.000000, "500"); |
217 | - | TextDrawSetOutline(Pressy, 0); |
217 | + | TextDrawBackgroundColor(Munitions500, 255); |
218 | - | TextDrawSetProportional(Pressy, 1); |
218 | + | TextDrawFont(Munitions500, 1); |
219 | - | TextDrawSetShadow(Pressy, 1); |
219 | + | TextDrawLetterSize(Munitions500, 0.360000, 1.500000); |
220 | TextDrawColor(Munitions500, -1); | |
221 | - | Pressn = TextDrawCreate(498.000000, 402.000000, "Press 'N' to cancel."); |
221 | + | TextDrawSetOutline(Munitions500, 0); |
222 | - | TextDrawBackgroundColor(Pressn, 255); |
222 | + | TextDrawSetProportional(Munitions500, 1); |
223 | - | TextDrawFont(Pressn, 1); |
223 | + | TextDrawSetShadow(Munitions500, 1); |
224 | - | TextDrawLetterSize(Pressn, 0.290000, 1.000000); |
224 | + | |
225 | - | TextDrawColor(Pressn, -1); |
225 | + | Munitions200 = TextDrawCreate(555.000000, 330.000000, "200"); |
226 | - | TextDrawSetOutline(Pressn, 0); |
226 | + | TextDrawBackgroundColor(Munitions200, 255); |
227 | - | TextDrawSetProportional(Pressn, 1); |
227 | + | TextDrawFont(Munitions200, 1); |
228 | - | TextDrawSetShadow(Pressn, 1); |
228 | + | TextDrawLetterSize(Munitions200, 0.360000, 1.500000); |
229 | - | |
229 | + | TextDrawColor(Munitions200, -1); |
230 | - | Box = TextDrawCreate(600.000000, 265.000000, " "); |
230 | + | TextDrawSetOutline(Munitions200, 0); |
231 | - | TextDrawAlignment(Box, 2); |
231 | + | TextDrawSetProportional(Munitions200, 1); |
232 | - | TextDrawBackgroundColor(Box, 255); |
232 | + | TextDrawSetShadow(Munitions200, 1); |
233 | - | TextDrawFont(Box, 3); |
233 | + | |
234 | - | TextDrawLetterSize(Box, 0.349999, 6.699995); |
234 | + | Munitions700 = TextDrawCreate(555.000000, 330.000000, "700"); |
235 | - | TextDrawColor(Box, 153); |
235 | + | TextDrawBackgroundColor(Munitions700, 255); |
236 | - | TextDrawSetOutline(Box, 0); |
236 | + | TextDrawFont(Munitions700, 1); |
237 | - | TextDrawSetProportional(Box, 1); |
237 | + | TextDrawLetterSize(Munitions700, 0.360000, 1.500000); |
238 | - | TextDrawSetShadow(Box, 1); |
238 | + | TextDrawColor(Munitions700, -1); |
239 | - | TextDrawUseBox(Box, 1); |
239 | + | TextDrawSetOutline(Munitions700, 0); |
240 | - | TextDrawBoxColor(Box, 153); |
240 | + | TextDrawSetProportional(Munitions700, 1); |
241 | - | TextDrawTextSize(Box, 45.000000, 212.000000); |
241 | + | TextDrawSetShadow(Munitions700, 1); |
242 | ||
243 | - | Ammo500 = TextDrawCreate(555.000000, 330.000000, "500"); |
243 | + | Prix7000 = TextDrawCreate(548.000000, 350.000000, "7,000$"); |
244 | - | TextDrawBackgroundColor(Ammo500, 255); |
244 | + | TextDrawBackgroundColor(Prix7000, 255); |
245 | - | TextDrawFont(Ammo500, 1); |
245 | + | TextDrawFont(Prix7000, 1); |
246 | - | TextDrawLetterSize(Ammo500, 0.360000, 1.500000); |
246 | + | TextDrawLetterSize(Prix7000, 0.360000, 1.500000); |
247 | - | TextDrawColor(Ammo500, -1); |
247 | + | TextDrawColor(Prix7000, -1); |
248 | - | TextDrawSetOutline(Ammo500, 0); |
248 | + | TextDrawSetOutline(Prix7000, 0); |
249 | - | TextDrawSetProportional(Ammo500, 1); |
249 | + | TextDrawSetProportional(Prix7000, 1); |
250 | - | TextDrawSetShadow(Ammo500, 1); |
250 | + | TextDrawSetShadow(Prix7000, 1); |
251 | ||
252 | - | Ammo200 = TextDrawCreate(555.000000, 330.000000, "200"); |
252 | + | Prix8000 = TextDrawCreate(548.000000, 350.000000, "8,000$"); |
253 | - | TextDrawBackgroundColor(Ammo200, 255); |
253 | + | TextDrawBackgroundColor(Prix8000, 255); |
254 | - | TextDrawFont(Ammo200, 1); |
254 | + | TextDrawFont(Prix8000, 1); |
255 | - | TextDrawLetterSize(Ammo200, 0.360000, 1.500000); |
255 | + | TextDrawLetterSize(Prix8000, 0.360000, 1.500000); |
256 | - | TextDrawColor(Ammo200, -1); |
256 | + | TextDrawColor(Prix8000, -1); |
257 | - | TextDrawSetOutline(Ammo200, 0); |
257 | + | TextDrawSetOutline(Prix8000, 0); |
258 | - | TextDrawSetProportional(Ammo200, 1); |
258 | + | TextDrawSetProportional(Prix8000, 1); |
259 | - | TextDrawSetShadow(Ammo200, 1); |
259 | + | TextDrawSetShadow(Prix8000, 1); |
260 | ||
261 | - | Ammo700 = TextDrawCreate(555.000000, 330.000000, "700"); |
261 | + | Prix9000 = TextDrawCreate(548.000000, 350.000000, "9,000$"); |
262 | - | TextDrawBackgroundColor(Ammo700, 255); |
262 | + | TextDrawBackgroundColor(Prix9000, 255); |
263 | - | TextDrawFont(Ammo700, 1); |
263 | + | TextDrawFont(Prix9000, 1); |
264 | - | TextDrawLetterSize(Ammo700, 0.360000, 1.500000); |
264 | + | TextDrawLetterSize(Prix9000, 0.360000, 1.500000); |
265 | - | TextDrawColor(Ammo700, -1); |
265 | + | TextDrawColor(Prix9000, -1); |
266 | - | TextDrawSetOutline(Ammo700, 0); |
266 | + | TextDrawSetOutline(Prix9000, 0); |
267 | - | TextDrawSetProportional(Ammo700, 1); |
267 | + | TextDrawSetProportional(Prix9000, 1); |
268 | - | TextDrawSetShadow(Ammo700, 1); |
268 | + | TextDrawSetShadow(Prix9000, 1); |
269 | - | |
269 | + | |
270 | - | Price7000 = TextDrawCreate(548.000000, 350.000000, "$7,000"); |
270 | + | Prix2000 = TextDrawCreate(548.000000, 350.000000, "2,000$"); |
271 | - | TextDrawBackgroundColor(Price7000, 255); |
271 | + | TextDrawBackgroundColor(Prix2000, 255); |
272 | - | TextDrawFont(Price7000, 1); |
272 | + | TextDrawFont(Prix2000, 1); |
273 | - | TextDrawLetterSize(Price7000, 0.360000, 1.500000); |
273 | + | TextDrawLetterSize(Prix2000, 0.360000, 1.500000); |
274 | - | TextDrawColor(Price7000, -1); |
274 | + | TextDrawColor(Prix2000, -1); |
275 | - | TextDrawSetOutline(Price7000, 0); |
275 | + | TextDrawSetOutline(Prix2000, 0); |
276 | - | TextDrawSetProportional(Price7000, 1); |
276 | + | TextDrawSetProportional(Prix2000, 1); |
277 | - | TextDrawSetShadow(Price7000, 1); |
277 | + | TextDrawSetShadow(Prix2000, 1); |
278 | ||
279 | - | Price8000 = TextDrawCreate(548.000000, 350.000000, "$8,000"); |
279 | + | Prix3000 = TextDrawCreate(548.000000, 350.000000, "3,000$"); |
280 | - | TextDrawBackgroundColor(Price8000, 255); |
280 | + | TextDrawBackgroundColor(Prix3000, 255); |
281 | - | TextDrawFont(Price8000, 1); |
281 | + | TextDrawFont(Prix3000, 1); |
282 | - | TextDrawLetterSize(Price8000, 0.360000, 1.500000); |
282 | + | TextDrawLetterSize(Prix3000, 0.360000, 1.500000); |
283 | - | TextDrawColor(Price8000, -1); |
283 | + | TextDrawColor(Prix3000, -1); |
284 | - | TextDrawSetOutline(Price8000, 0); |
284 | + | TextDrawSetOutline(Prix3000, 0); |
285 | - | TextDrawSetProportional(Price8000, 1); |
285 | + | TextDrawSetProportional(Prix3000, 1); |
286 | - | TextDrawSetShadow(Price8000, 1); |
286 | + | TextDrawSetShadow(Prix3000, 1); |
287 | return 1; | |
288 | - | Price9000 = TextDrawCreate(548.000000, 350.000000, "$9,000"); |
288 | + | |
289 | - | TextDrawBackgroundColor(Price9000, 255); |
289 | + | |
290 | - | TextDrawFont(Price9000, 1); |
290 | + | |
291 | - | TextDrawLetterSize(Price9000, 0.360000, 1.500000); |
291 | + | |
292 | - | TextDrawColor(Price9000, -1); |
292 | + | |
293 | - | TextDrawSetOutline(Price9000, 0); |
293 | + | if (PRESSED(KEY_NO)) |
294 | - | TextDrawSetProportional(Price9000, 1); |
294 | + | |
295 | - | TextDrawSetShadow(Price9000, 1); |
295 | + | TogglePlayerControllable(playerid,1); |
296 | - | |
296 | + | SetCameraBehindPlayer(playerid); |
297 | - | Price2000 = TextDrawCreate(548.000000, 350.000000, "$2,000"); |
297 | + | TextDrawHideForPlayer(playerid, Text:Armes); |
298 | - | TextDrawBackgroundColor(Price2000, 255); |
298 | + | |
299 | - | TextDrawFont(Price2000, 1); |
299 | + | |
300 | - | TextDrawLetterSize(Price2000, 0.360000, 1.500000); |
300 | + | |
301 | - | TextDrawColor(Price2000, -1); |
301 | + | |
302 | - | TextDrawSetOutline(Price2000, 0); |
302 | + | |
303 | - | TextDrawSetProportional(Price2000, 1); |
303 | + | |
304 | - | TextDrawSetShadow(Price2000, 1); |
304 | + | TextDrawHideForPlayer(playerid, Text:shotgun); |
305 | - | |
305 | + | |
306 | - | Price3000 = TextDrawCreate(548.000000, 350.000000, "$3,000"); |
306 | + | |
307 | - | TextDrawBackgroundColor(Price3000, 255); |
307 | + | |
308 | - | TextDrawFont(Price3000, 1); |
308 | + | |
309 | - | TextDrawLetterSize(Price3000, 0.360000, 1.500000); |
309 | + | |
310 | - | TextDrawColor(Price3000, -1); |
310 | + | |
311 | - | TextDrawSetOutline(Price3000, 0); |
311 | + | |
312 | - | TextDrawSetProportional(Price3000, 1); |
312 | + | |
313 | - | TextDrawSetShadow(Price3000, 1); |
313 | + | TextDrawHideForPlayer(playerid, Text:Munitions); |
314 | - | return 1; |
314 | + | TextDrawHideForPlayer(playerid, Text:Munitions200); |
315 | TextDrawHideForPlayer(playerid, Text:Munitions500); | |
316 | TextDrawHideForPlayer(playerid, Text:Munitions700); | |
317 | - | public OnGameModeExit() |
317 | + | TextDrawHideForPlayer(playerid, Text:Prix); |
318 | TextDrawHideForPlayer(playerid, Text:Prix9000); | |
319 | - | return 1; |
319 | + | TextDrawHideForPlayer(playerid, Text:Prix8000); |
320 | TextDrawHideForPlayer(playerid, Text:Prix7000); | |
321 | TextDrawHideForPlayer(playerid, Text:Prix2000); | |
322 | - | public OnPlayerRequestClass(playerid, classid) |
322 | + | TextDrawHideForPlayer(playerid, Text:Prix3000); |
323 | new Skin = GetPlayerSkin(playerid); | |
324 | - | return 1; |
324 | + | SetPlayerSkin(playerid, Skin); |
325 | } | |
326 | } | |
327 | - | public OnPlayerConnect(playerid) |
327 | + | |
328 | if(IsPlayerInRangeOfPoint(playerid,1.0, -1051.8517,2584.9487,141.2628)) | |
329 | - | PreloadAnimLib(playerid,"INT_SHOP"); |
329 | + | |
330 | - | RemoveBuildingForPlayer(playerid, 18105, 312.9844, -163.2500, 1000.5547, 0.25); |
330 | + | if (PRESSED(KEY_YES)) |
331 | - | return 1; |
331 | + | { |
332 | if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); | |
333 | TogglePlayerControllable(playerid,1); | |
334 | - | public OnPlayerDisconnect(playerid, reason) |
334 | + | SetCameraBehindPlayer(playerid); |
335 | TextDrawHideForPlayer(playerid, Text:Armes); | |
336 | - | return 1; |
336 | + | TextDrawHideForPlayer(playerid, Text:ninemm); |
337 | TextDrawHideForPlayer(playerid, Text:Box); | |
338 | TextDrawHideForPlayer(playerid, Text:Pressy); | |
339 | - | public OnPlayerSpawn(playerid) |
339 | + | TextDrawHideForPlayer(playerid, Text:Pressn); |
340 | TextDrawHideForPlayer(playerid, Text:Munitions); | |
341 | - | return 1; |
341 | + | TextDrawHideForPlayer(playerid, Text:Prix); |
342 | TextDrawHideForPlayer(playerid, Text:Munitions200); | |
343 | TextDrawHideForPlayer(playerid, Text:Prix2000); | |
344 | - | public OnPlayerDeath(playerid, killerid, reason) |
344 | + | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter une 9MM Pistolet pour 200$ avec 200 Munitions"); |
345 | GivePlayerWeapon(playerid, 22, 200); | |
346 | - | return 1; |
346 | + | GivePlayerMoney(playerid, -2000); |
347 | new Skin = GetPlayerSkin(playerid); | |
348 | SetPlayerSkin(playerid, Skin); | |
349 | - | public OnVehicleSpawn(vehicleid) |
349 | + | } |
350 | } | |
351 | - | return 1; |
351 | + | if (PRESSED(KEY_SECONDARY_ATTACK)) |
352 | { | |
353 | if(IsPlayerInRangeOfPoint(playerid,1.0, -1051.8517,2584.9487,141.2628)) | |
354 | - | public OnVehicleDeath(vehicleid, killerid) |
354 | + | |
355 | TogglePlayerControllable(playerid,0); | |
356 | - | return 1; |
356 | + | |
357 | TextDrawShowForPlayer(playerid, Text:Armes); | |
358 | TextDrawShowForPlayer(playerid, Text:ninemm); | |
359 | - | public OnPlayerText(playerid, text[]) |
359 | + | TextDrawShowForPlayer(playerid, Text:Box); |
360 | TextDrawShowForPlayer(playerid, Text:Pressy); | |
361 | - | return 1; |
361 | + | TextDrawShowForPlayer(playerid, Text:Pressn); |
362 | TextDrawShowForPlayer(playerid, Text:Munitions); | |
363 | TextDrawShowForPlayer(playerid, Text:Prix); | |
364 | - | public OnPlayerCommandText(playerid, cmdtext[]) |
364 | + | TextDrawShowForPlayer(playerid, Text:Munitions200); |
365 | TextDrawShowForPlayer(playerid, Text:Prix2000); | |
366 | - | if (strcmp("/ammu", cmdtext, true, 5) == 0) |
366 | + | SetPlayerCameraPos(playerid, 312.7308, -164.2786, 1000.1425); |
367 | - | { |
367 | + | SetPlayerCameraLookAt(playerid, 309.7611, -162.7127, 999.5625); |
368 | - | SetPlayerInterior(playerid, 6); |
368 | + | |
369 | - | SetPlayerPos(playerid, 316.524993,-167.706985,999.593750); |
369 | + | |
370 | - | return 1; |
370 | + | |
371 | - | } |
371 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, -1050.8779,2584.9504,141.2628)) |
372 | - | return 0; |
372 | + | |
373 | if (PRESSED(KEY_YES)) | |
374 | { | |
375 | - | public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) |
375 | + | if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); |
376 | TogglePlayerControllable(playerid,1); | |
377 | - | return 1; |
377 | + | SetCameraBehindPlayer(playerid); |
378 | TextDrawHideForPlayer(playerid, Text:Armes); | |
379 | TextDrawHideForPlayer(playerid, Text:Desert); | |
380 | - | public OnPlayerExitVehicle(playerid, vehicleid) |
380 | + | TextDrawHideForPlayer(playerid, Text:eagle); |
381 | TextDrawHideForPlayer(playerid, Text:Box); | |
382 | - | return 1; |
382 | + | TextDrawHideForPlayer(playerid, Text:Pressy); |
383 | TextDrawHideForPlayer(playerid, Text:Pressn); | |
384 | TextDrawHideForPlayer(playerid, Text:Munitions); | |
385 | - | public OnPlayerStateChange(playerid, newstate, oldstate) |
385 | + | TextDrawHideForPlayer(playerid, Text:Prix); |
386 | TextDrawHideForPlayer(playerid, Text:Munitions200); | |
387 | - | return 1; |
387 | + | TextDrawHideForPlayer(playerid, Text:Prix3000); |
388 | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter une Desert-Eagle pour 3.000$ avec 200 Munitions"); | |
389 | GivePlayerWeapon(playerid, 24, 200); | |
390 | - | public OnPlayerEnterCheckpoint(playerid) |
390 | + | GivePlayerMoney(playerid, -3000); |
391 | new Skin = GetPlayerSkin(playerid); | |
392 | - | return 1; |
392 | + | SetPlayerSkin(playerid, Skin); |
393 | } | |
394 | } | |
395 | - | public OnPlayerLeaveCheckpoint(playerid) |
395 | + | if (PRESSED(KEY_SECONDARY_ATTACK)) |
396 | { | |
397 | - | return 1; |
397 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, -1050.8779,2584.9504,141.2628)) |
398 | { | |
399 | TogglePlayerControllable(playerid,0); | |
400 | - | public OnPlayerEnterRaceCheckpoint(playerid) |
400 | + | |
401 | TextDrawShowForPlayer(playerid, Text:Armes); | |
402 | - | return 1; |
402 | + | TextDrawShowForPlayer(playerid, Text:Desert); |
403 | TextDrawShowForPlayer(playerid, Text:eagle); | |
404 | TextDrawShowForPlayer(playerid, Text:Box); | |
405 | - | public OnPlayerLeaveRaceCheckpoint(playerid) |
405 | + | TextDrawShowForPlayer(playerid, Text:Pressy); |
406 | TextDrawShowForPlayer(playerid, Text:Pressn); | |
407 | - | return 1; |
407 | + | TextDrawShowForPlayer(playerid, Text:Munitions); |
408 | TextDrawShowForPlayer(playerid, Text:Prix); | |
409 | TextDrawShowForPlayer(playerid, Text:Munitions200); | |
410 | - | public OnRconCommand(cmd[]) |
410 | + | TextDrawShowForPlayer(playerid, Text:Prix3000); |
411 | SetPlayerCameraPos(playerid, 309.4929, -164.2428, 1000.1425); | |
412 | - | return 1; |
412 | + | SetPlayerCameraLookAt(playerid, 309.6281, -162.3687, 999.5625); |
413 | } | |
414 | } | |
415 | - | public OnPlayerRequestSpawn(playerid) |
415 | + | |
416 | if(IsPlayerInRangeOfPoint(playerid,1.0, -1049.9031,2584.8923,141.2628)) | |
417 | - | return 1; |
417 | + | |
418 | if (PRESSED(KEY_YES)) | |
419 | { | |
420 | - | public OnObjectMoved(objectid) |
420 | + | if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); |
421 | TogglePlayerControllable(playerid,1); | |
422 | - | return 1; |
422 | + | SetCameraBehindPlayer(playerid); |
423 | TextDrawHideForPlayer(playerid, Text:Armes); | |
424 | TextDrawHideForPlayer(playerid, Text:Shotgun); | |
425 | - | public OnPlayerObjectMoved(playerid, objectid) |
425 | + | TextDrawHideForPlayer(playerid, Text:Box); |
426 | TextDrawHideForPlayer(playerid, Text:Pressy); | |
427 | - | return 1; |
427 | + | TextDrawHideForPlayer(playerid, Text:Pressn); |
428 | TextDrawHideForPlayer(playerid, Text:Munitions); | |
429 | TextDrawHideForPlayer(playerid, Text:Prix); | |
430 | - | public OnPlayerPickUpPickup(playerid, pickupid) |
430 | + | TextDrawHideForPlayer(playerid, Text:Munitions200); |
431 | TextDrawHideForPlayer(playerid, Text:Prix7000); | |
432 | - | return 1; |
432 | + | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter un ShotGun pour 7.000$ avec 200 Munitions"); |
433 | GivePlayerWeapon(playerid, 25, 200); | |
434 | GivePlayerMoney(playerid, -7000); | |
435 | - | public OnVehicleMod(playerid, vehicleid, componentid) |
435 | + | new Skin = GetPlayerSkin(playerid); |
436 | SetPlayerSkin(playerid, Skin); | |
437 | - | return 1; |
437 | + | } |
438 | } | |
439 | if (PRESSED(KEY_SECONDARY_ATTACK)) | |
440 | - | public OnVehiclePaintjob(playerid, vehicleid, paintjobid) |
440 | + | |
441 | if(IsPlayerInRangeOfPoint(playerid,1.0, -1049.9031,2584.8923,141.2628)) | |
442 | - | return 1; |
442 | + | |
443 | TogglePlayerControllable(playerid,0); | |
444 | ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1); | |
445 | - | public OnVehicleRespray(playerid, vehicleid, color1, color2) |
445 | + | TextDrawShowForPlayer(playerid, Text:Armes); |
446 | TextDrawShowForPlayer(playerid, Text:Shotgun); | |
447 | - | return 1; |
447 | + | TextDrawShowForPlayer(playerid, Text:Box); |
448 | TextDrawShowForPlayer(playerid, Text:Pressy); | |
449 | TextDrawShowForPlayer(playerid, Text:Pressn); | |
450 | - | public OnPlayerSelectedMenuRow(playerid, row) |
450 | + | TextDrawShowForPlayer(playerid, Text:Munitions); |
451 | TextDrawShowForPlayer(playerid, Text:Prix); | |
452 | - | return 1; |
452 | + | TextDrawShowForPlayer(playerid, Text:Munitions200); |
453 | TextDrawShowForPlayer(playerid, Text:Prix7000); | |
454 | SetPlayerCameraPos(playerid, 311.9360, -160.4641, 1000.1425); | |
455 | - | public OnPlayerExitedMenu(playerid) |
455 | + | SetPlayerCameraLookAt(playerid, 311.5432, -162.4070, 999.5625); |
456 | ||
457 | - | return 1; |
457 | + | |
458 | } | |
459 | ||
460 | - | public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) |
460 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, -1048.9385,2584.8347,141.2628)) |
461 | { | |
462 | - | return 1; |
462 | + | if (PRESSED(KEY_YES)) |
463 | { | |
464 | if(GetPlayerMoney(playerid) < 9000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); | |
465 | TogglePlayerControllable(playerid,1); | |
466 | SetCameraBehindPlayer(playerid); | |
467 | TextDrawHideForPlayer(playerid, Text:Armes); | |
468 | TextDrawHideForPlayer(playerid, Text:Sawnoff); | |
469 | - | if (PRESSED(KEY_NO)) |
469 | + | TextDrawHideForPlayer(playerid, Text:shotgun); |
470 | - | { |
470 | + | TextDrawHideForPlayer(playerid, Text:Box); |
471 | - | TogglePlayerControllable(playerid,1); |
471 | + | TextDrawHideForPlayer(playerid, Text:Pressy); |
472 | - | SetCameraBehindPlayer(playerid); |
472 | + | TextDrawHideForPlayer(playerid, Text:Pressn); |
473 | - | TextDrawHideForPlayer(playerid, Text:Weapon); |
473 | + | TextDrawHideForPlayer(playerid, Text:Munitions); |
474 | TextDrawHideForPlayer(playerid, Text:Prix); | |
475 | TextDrawHideForPlayer(playerid, Text:Munitions200); | |
476 | TextDrawHideForPlayer(playerid, Text:Prix9000); | |
477 | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter un Sawnoff shotgun pour 9.000$ avec 200 Munitions"); | |
478 | GivePlayerWeapon(playerid, 26, 200); | |
479 | GivePlayerMoney(playerid, -9000); | |
480 | - | TextDrawHideForPlayer(playerid, Text:shotgun); |
480 | + | new Skin = GetPlayerSkin(playerid); |
481 | SetPlayerSkin(playerid, Skin); | |
482 | } | |
483 | } | |
484 | if (PRESSED(KEY_SECONDARY_ATTACK)) | |
485 | { | |
486 | if(IsPlayerInRangeOfPoint(playerid,1.0, -1048.9385,2584.8347,141.2628)) | |
487 | { | |
488 | TogglePlayerControllable(playerid,0); | |
489 | - | TextDrawHideForPlayer(playerid, Text:Ammo); |
489 | + | |
490 | - | TextDrawHideForPlayer(playerid, Text:Ammo200); |
490 | + | TextDrawShowForPlayer(playerid, Text:Armes); |
491 | - | TextDrawHideForPlayer(playerid, Text:Ammo500); |
491 | + | TextDrawShowForPlayer(playerid, Text:Sawnoff); |
492 | - | TextDrawHideForPlayer(playerid, Text:Ammo700); |
492 | + | TextDrawShowForPlayer(playerid, Text:shotgun); |
493 | - | TextDrawHideForPlayer(playerid, Text:Price); |
493 | + | TextDrawShowForPlayer(playerid, Text:Box); |
494 | - | TextDrawHideForPlayer(playerid, Text:Price9000); |
494 | + | TextDrawShowForPlayer(playerid, Text:Pressy); |
495 | - | TextDrawHideForPlayer(playerid, Text:Price8000); |
495 | + | TextDrawShowForPlayer(playerid, Text:Pressn); |
496 | - | TextDrawHideForPlayer(playerid, Text:Price7000); |
496 | + | TextDrawShowForPlayer(playerid, Text:Munitions); |
497 | - | TextDrawHideForPlayer(playerid, Text:Price2000); |
497 | + | TextDrawShowForPlayer(playerid, Text:Prix); |
498 | - | TextDrawHideForPlayer(playerid, Text:Price3000); |
498 | + | TextDrawShowForPlayer(playerid, Text:Munitions200); |
499 | TextDrawShowForPlayer(playerid, Text:Prix9000); | |
500 | - | SetPlayerSkin(playerid, Skin); |
500 | + | SetPlayerCameraPos(playerid, 308.0452, -161.1160, 1000.1425); |
501 | - | } |
501 | + | SetPlayerCameraLookAt(playerid, 310.0738, -161.4842, 999.5625); |
502 | ||
503 | - | |
503 | + | |
504 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 310.69, -163.25, 999.62)) |
504 | + | |
505 | - | { |
505 | + | |
506 | - | if (PRESSED(KEY_YES)) |
506 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, 1048.1090,2584.8521,141.2628)) |
507 | - | { |
507 | + | |
508 | - | if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to buy that weapon."); |
508 | + | if (PRESSED(KEY_YES)) |
509 | - | TogglePlayerControllable(playerid,1); |
509 | + | { |
510 | - | SetCameraBehindPlayer(playerid); |
510 | + | if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); |
511 | - | TextDrawHideForPlayer(playerid, Text:Weapon); |
511 | + | TogglePlayerControllable(playerid,1); |
512 | - | TextDrawHideForPlayer(playerid, Text:ninemm); |
512 | + | SetCameraBehindPlayer(playerid); |
513 | - | TextDrawHideForPlayer(playerid, Text:Box); |
513 | + | TextDrawHideForPlayer(playerid, Text:Armes); |
514 | - | TextDrawHideForPlayer(playerid, Text:Pressy); |
514 | + | TextDrawHideForPlayer(playerid, Text:shotgun); |
515 | - | TextDrawHideForPlayer(playerid, Text:Pressn); |
515 | + | TextDrawHideForPlayer(playerid, Text:Combat); |
516 | - | TextDrawHideForPlayer(playerid, Text:Ammo); |
516 | + | TextDrawHideForPlayer(playerid, Text:Box); |
517 | - | TextDrawHideForPlayer(playerid, Text:Price); |
517 | + | TextDrawHideForPlayer(playerid, Text:Pressy); |
518 | - | TextDrawHideForPlayer(playerid, Text:Ammo200); |
518 | + | TextDrawHideForPlayer(playerid, Text:Pressn); |
519 | - | TextDrawHideForPlayer(playerid, Text:Price2000); |
519 | + | TextDrawHideForPlayer(playerid, Text:Munitions); |
520 | - | SendClientMessage(playerid, COLOR_GREEN, "You just bought a 9mm with 200 ammo for $2,000!"); |
520 | + | TextDrawHideForPlayer(playerid, Text:Prix); |
521 | - | GivePlayerWeapon(playerid, 22, 200); |
521 | + | TextDrawHideForPlayer(playerid, Text:Munitions200); |
522 | - | GivePlayerMoney(playerid, -2000); |
522 | + | TextDrawHideForPlayer(playerid, Text:Prix8000); |
523 | - | new Skin = GetPlayerSkin(playerid); |
523 | + | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter un Shotgun-Combat pour 8.000$ avec 200 Munitions"); |
524 | - | SetPlayerSkin(playerid, Skin); |
524 | + | GivePlayerWeapon(playerid, 27, 200); |
525 | - | } |
525 | + | GivePlayerMoney(playerid, -8000); |
526 | - | } |
526 | + | new Skin = GetPlayerSkin(playerid); |
527 | - | if (PRESSED(KEY_SECONDARY_ATTACK)) |
527 | + | SetPlayerSkin(playerid, Skin); |
528 | } | |
529 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 310.69, -163.25, 999.62)) |
529 | + | |
530 | if (PRESSED(KEY_SECONDARY_ATTACK)) | |
531 | { | |
532 | if(IsPlayerInRangeOfPoint(playerid,1.0, 1048.1090,2584.8521,141.2628)) | |
533 | - | TextDrawShowForPlayer(playerid, Text:Weapon); |
533 | + | |
534 | - | TextDrawShowForPlayer(playerid, Text:ninemm); |
534 | + | |
535 | - | TextDrawShowForPlayer(playerid, Text:Box); |
535 | + | |
536 | - | TextDrawShowForPlayer(playerid, Text:Pressy); |
536 | + | TextDrawShowForPlayer(playerid, Text:Armes); |
537 | - | TextDrawShowForPlayer(playerid, Text:Pressn); |
537 | + | TextDrawShowForPlayer(playerid, Text:shotgun); |
538 | - | TextDrawShowForPlayer(playerid, Text:Ammo); |
538 | + | TextDrawShowForPlayer(playerid, Text:Combat); |
539 | - | TextDrawShowForPlayer(playerid, Text:Price); |
539 | + | TextDrawShowForPlayer(playerid, Text:Box); |
540 | - | TextDrawShowForPlayer(playerid, Text:Ammo200); |
540 | + | TextDrawShowForPlayer(playerid, Text:Pressy); |
541 | - | TextDrawShowForPlayer(playerid, Text:Price2000); |
541 | + | TextDrawShowForPlayer(playerid, Text:Pressn); |
542 | - | SetPlayerCameraPos(playerid, 312.7308, -164.2786, 1000.1425); |
542 | + | TextDrawShowForPlayer(playerid, Text:Munitions); |
543 | - | SetPlayerCameraLookAt(playerid, 309.7611, -162.7127, 999.5625); |
543 | + | TextDrawShowForPlayer(playerid, Text:Prix); |
544 | TextDrawShowForPlayer(playerid, Text:Munitions200); | |
545 | - | } |
545 | + | TextDrawShowForPlayer(playerid, Text:Prix8000); |
546 | - | |
546 | + | SetPlayerCameraPos(playerid, 312.6877, -161.2530, 1000.1425); |
547 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 309.9547, -162.4500, 999.6200)) |
547 | + | SetPlayerCameraLookAt(playerid, 311.0968, -161.5094, 999.5625); |
548 | - | { |
548 | + | |
549 | - | if (PRESSED(KEY_YES)) |
549 | + | |
550 | - | { |
550 | + | |
551 | - | if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to buy that weapon."); |
551 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, 1047.0414,2585.0024,141.2628)) |
552 | - | TogglePlayerControllable(playerid,1); |
552 | + | |
553 | - | SetCameraBehindPlayer(playerid); |
553 | + | if (PRESSED(KEY_YES)) |
554 | - | TextDrawHideForPlayer(playerid, Text:Weapon); |
554 | + | { |
555 | - | TextDrawHideForPlayer(playerid, Text:Desert); |
555 | + | if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); |
556 | - | TextDrawHideForPlayer(playerid, Text:eagle); |
556 | + | TogglePlayerControllable(playerid,1); |
557 | - | TextDrawHideForPlayer(playerid, Text:Box); |
557 | + | SetCameraBehindPlayer(playerid); |
558 | - | TextDrawHideForPlayer(playerid, Text:Pressy); |
558 | + | TextDrawHideForPlayer(playerid, Text:Armes); |
559 | - | TextDrawHideForPlayer(playerid, Text:Pressn); |
559 | + | TextDrawHideForPlayer(playerid, Text:MP5); |
560 | - | TextDrawHideForPlayer(playerid, Text:Ammo); |
560 | + | TextDrawHideForPlayer(playerid, Text:Box); |
561 | - | TextDrawHideForPlayer(playerid, Text:Price); |
561 | + | TextDrawHideForPlayer(playerid, Text:Pressy); |
562 | - | TextDrawHideForPlayer(playerid, Text:Ammo200); |
562 | + | TextDrawHideForPlayer(playerid, Text:Pressn); |
563 | - | TextDrawHideForPlayer(playerid, Text:Price3000); |
563 | + | TextDrawHideForPlayer(playerid, Text:Munitions); |
564 | - | SendClientMessage(playerid, COLOR_GREEN, "You just bought a Desert Eagle with 200 ammo for $3,000!"); |
564 | + | TextDrawHideForPlayer(playerid, Text:Prix); |
565 | - | GivePlayerWeapon(playerid, 24, 200); |
565 | + | TextDrawHideForPlayer(playerid, Text:Munitions700); |
566 | - | GivePlayerMoney(playerid, -3000); |
566 | + | TextDrawHideForPlayer(playerid, Text:Prix7000); |
567 | - | new Skin = GetPlayerSkin(playerid); |
567 | + | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter une MP5 pour 7.000$ avec 700 Munitions"); |
568 | - | SetPlayerSkin(playerid, Skin); |
568 | + | GivePlayerWeapon(playerid, 29, 700); |
569 | - | } |
569 | + | GivePlayerMoney(playerid, -7000); |
570 | - | } |
570 | + | new Skin = GetPlayerSkin(playerid); |
571 | - | if (PRESSED(KEY_SECONDARY_ATTACK)) |
571 | + | SetPlayerSkin(playerid, Skin); |
572 | } | |
573 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 309.9547, -162.4500, 999.6200)) |
573 | + | |
574 | if (PRESSED(KEY_SECONDARY_ATTACK)) | |
575 | { | |
576 | if(IsPlayerInRangeOfPoint(playerid,1.0, 1047.0414,2585.0024,141.2628)) | |
577 | - | TextDrawShowForPlayer(playerid, Text:Weapon); |
577 | + | |
578 | - | TextDrawShowForPlayer(playerid, Text:Desert); |
578 | + | |
579 | - | TextDrawShowForPlayer(playerid, Text:eagle); |
579 | + | |
580 | - | TextDrawShowForPlayer(playerid, Text:Box); |
580 | + | TextDrawShowForPlayer(playerid, Text:Armes); |
581 | - | TextDrawShowForPlayer(playerid, Text:Pressy); |
581 | + | TextDrawShowForPlayer(playerid, Text:MP5); |
582 | - | TextDrawShowForPlayer(playerid, Text:Pressn); |
582 | + | TextDrawShowForPlayer(playerid, Text:Box); |
583 | - | TextDrawShowForPlayer(playerid, Text:Ammo); |
583 | + | TextDrawShowForPlayer(playerid, Text:Pressy); |
584 | - | TextDrawShowForPlayer(playerid, Text:Price); |
584 | + | TextDrawShowForPlayer(playerid, Text:Pressn); |
585 | - | TextDrawShowForPlayer(playerid, Text:Ammo200); |
585 | + | TextDrawShowForPlayer(playerid, Text:Munitions); |
586 | - | TextDrawShowForPlayer(playerid, Text:Price3000); |
586 | + | TextDrawShowForPlayer(playerid, Text:Prix); |
587 | - | SetPlayerCameraPos(playerid, 309.4929, -164.2428, 1000.1425); |
587 | + | TextDrawShowForPlayer(playerid, Text:Munitions700); |
588 | - | SetPlayerCameraLookAt(playerid, 309.6281, -162.3687, 999.5625); |
588 | + | TextDrawShowForPlayer(playerid, Text:Prix7000); |
589 | SetPlayerCameraPos(playerid, 313.2165, -161.2382, 1000.1425); | |
590 | - | } |
590 | + | SetPlayerCameraLookAt(playerid, 314.9025, -161.4821, 999.5625); |
591 | - | |
591 | + | } |
592 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 311.69, -162.64, 999.62)) |
592 | + | |
593 | - | { |
593 | + | |
594 | - | if (PRESSED(KEY_YES)) |
594 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, 1046.0942,2584.9468,141.2628)) |
595 | - | { |
595 | + | |
596 | - | if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to buy that weapon."); |
596 | + | if (PRESSED(KEY_YES)) |
597 | - | TogglePlayerControllable(playerid,1); |
597 | + | { |
598 | - | SetCameraBehindPlayer(playerid); |
598 | + | if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); |
599 | - | TextDrawHideForPlayer(playerid, Text:Weapon); |
599 | + | TogglePlayerControllable(playerid,1); |
600 | - | TextDrawHideForPlayer(playerid, Text:Shotgun); |
600 | + | SetCameraBehindPlayer(playerid); |
601 | - | TextDrawHideForPlayer(playerid, Text:Box); |
601 | + | TextDrawHideForPlayer(playerid, Text:Armes); |
602 | - | TextDrawHideForPlayer(playerid, Text:Pressy); |
602 | + | TextDrawHideForPlayer(playerid, Text:AK47); |
603 | - | TextDrawHideForPlayer(playerid, Text:Pressn); |
603 | + | TextDrawHideForPlayer(playerid, Text:Box); |
604 | - | TextDrawHideForPlayer(playerid, Text:Ammo); |
604 | + | TextDrawHideForPlayer(playerid, Text:Pressy); |
605 | - | TextDrawHideForPlayer(playerid, Text:Price); |
605 | + | TextDrawHideForPlayer(playerid, Text:Pressn); |
606 | - | TextDrawHideForPlayer(playerid, Text:Ammo200); |
606 | + | TextDrawHideForPlayer(playerid, Text:Munitions); |
607 | - | TextDrawHideForPlayer(playerid, Text:Price7000); |
607 | + | TextDrawHideForPlayer(playerid, Text:Prix); |
608 | - | SendClientMessage(playerid, COLOR_GREEN, "You just bought a Shotgun with 200 ammo for $7,000!"); |
608 | + | TextDrawHideForPlayer(playerid, Text:Munitions500); |
609 | - | GivePlayerWeapon(playerid, 25, 200); |
609 | + | TextDrawHideForPlayer(playerid, Text:Prix7000); |
610 | - | GivePlayerMoney(playerid, -7000); |
610 | + | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter une AK47 pour 7.000$ avec 500 Munitions"); |
611 | - | new Skin = GetPlayerSkin(playerid); |
611 | + | GivePlayerWeapon(playerid, 30, 500); |
612 | - | SetPlayerSkin(playerid, Skin); |
612 | + | GivePlayerMoney(playerid, -7000); |
613 | - | } |
613 | + | new Skin = GetPlayerSkin(playerid); |
614 | - | } |
614 | + | SetPlayerSkin(playerid, Skin); |
615 | - | if (PRESSED(KEY_SECONDARY_ATTACK)) |
615 | + | } |
616 | } | |
617 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 311.69, -162.64, 999.62)) |
617 | + | if (PRESSED(KEY_SECONDARY_ATTACK)) |
618 | { | |
619 | if(IsPlayerInRangeOfPoint(playerid,1.0, 1046.0942,2584.9468,141.2628)) | |
620 | { | |
621 | - | TextDrawShowForPlayer(playerid, Text:Weapon); |
621 | + | |
622 | - | TextDrawShowForPlayer(playerid, Text:Shotgun); |
622 | + | |
623 | - | TextDrawShowForPlayer(playerid, Text:Box); |
623 | + | TextDrawShowForPlayer(playerid, Text:Armes); |
624 | - | TextDrawShowForPlayer(playerid, Text:Pressy); |
624 | + | TextDrawShowForPlayer(playerid, Text:AK47); |
625 | - | TextDrawShowForPlayer(playerid, Text:Pressn); |
625 | + | TextDrawShowForPlayer(playerid, Text:Box); |
626 | - | TextDrawShowForPlayer(playerid, Text:Ammo); |
626 | + | TextDrawShowForPlayer(playerid, Text:Pressy); |
627 | - | TextDrawShowForPlayer(playerid, Text:Price); |
627 | + | TextDrawShowForPlayer(playerid, Text:Pressn); |
628 | - | TextDrawShowForPlayer(playerid, Text:Ammo200); |
628 | + | TextDrawShowForPlayer(playerid, Text:Munitions); |
629 | - | TextDrawShowForPlayer(playerid, Text:Price7000); |
629 | + | TextDrawShowForPlayer(playerid, Text:Prix); |
630 | - | SetPlayerCameraPos(playerid, 311.9360, -160.4641, 1000.1425); |
630 | + | TextDrawShowForPlayer(playerid, Text:Munitions500); |
631 | - | SetPlayerCameraLookAt(playerid, 311.5432, -162.4070, 999.5625); |
631 | + | TextDrawShowForPlayer(playerid, Text:Prix7000); |
632 | SetPlayerCameraPos(playerid, 316.7339, -160.9307, 1000.1425); | |
633 | SetPlayerCameraLookAt(playerid, 315.8018, -162.3379, 999.5625); | |
634 | - | } |
634 | + | } |
635 | - | |
635 | + | |
636 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 310.10, -161.51, 999.60)) |
636 | + | |
637 | - | { |
637 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, -1045.2207,2584.8953,141.2628)) |
638 | - | if (PRESSED(KEY_YES)) |
638 | + | |
639 | - | { |
639 | + | if (PRESSED(KEY_YES)) |
640 | - | if(GetPlayerMoney(playerid) < 9000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to buy that weapon."); |
640 | + | { |
641 | - | TogglePlayerControllable(playerid,1); |
641 | + | if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); |
642 | - | SetCameraBehindPlayer(playerid); |
642 | + | TogglePlayerControllable(playerid,1); |
643 | - | TextDrawHideForPlayer(playerid, Text:Weapon); |
643 | + | SetCameraBehindPlayer(playerid); |
644 | - | TextDrawHideForPlayer(playerid, Text:Sawnoff); |
644 | + | TextDrawHideForPlayer(playerid, Text:Armes); |
645 | - | TextDrawHideForPlayer(playerid, Text:shotgun); |
645 | + | TextDrawHideForPlayer(playerid, Text:M4); |
646 | - | TextDrawHideForPlayer(playerid, Text:Box); |
646 | + | TextDrawHideForPlayer(playerid, Text:Box); |
647 | - | TextDrawHideForPlayer(playerid, Text:Pressy); |
647 | + | TextDrawHideForPlayer(playerid, Text:Pressy); |
648 | - | TextDrawHideForPlayer(playerid, Text:Pressn); |
648 | + | TextDrawHideForPlayer(playerid, Text:Pressn); |
649 | - | TextDrawHideForPlayer(playerid, Text:Ammo); |
649 | + | TextDrawHideForPlayer(playerid, Text:Munitions); |
650 | - | TextDrawHideForPlayer(playerid, Text:Price); |
650 | + | TextDrawHideForPlayer(playerid, Text:Prix); |
651 | - | TextDrawHideForPlayer(playerid, Text:Ammo200); |
651 | + | TextDrawHideForPlayer(playerid, Text:Munitions500); |
652 | - | TextDrawHideForPlayer(playerid, Text:Price9000); |
652 | + | TextDrawHideForPlayer(playerid, Text:Prix8000); |
653 | - | SendClientMessage(playerid, COLOR_GREEN, "You just bought a Sawnoff Shotgun with 200 ammo for $9,000!"); |
653 | + | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter une M4 pour 8.000$ avec 500 Munitions"); |
654 | - | GivePlayerWeapon(playerid, 26, 200); |
654 | + | GivePlayerWeapon(playerid, 31, 500); |
655 | - | GivePlayerMoney(playerid, -9000); |
655 | + | GivePlayerMoney(playerid, -8000); |
656 | - | new Skin = GetPlayerSkin(playerid); |
656 | + | new Skin = GetPlayerSkin(playerid); |
657 | - | SetPlayerSkin(playerid, Skin); |
657 | + | SetPlayerSkin(playerid, Skin); |
658 | - | } |
658 | + | } |
659 | - | } |
659 | + | |
660 | - | if (PRESSED(KEY_SECONDARY_ATTACK)) |
660 | + | if (PRESSED(KEY_SECONDARY_ATTACK)) |
661 | { | |
662 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 310.10, -161.51, 999.60)) |
662 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, -1045.2207,2584.8953,141.2628)) |
663 | { | |
664 | TogglePlayerControllable(playerid,0); | |
665 | ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1); | |
666 | - | TextDrawShowForPlayer(playerid, Text:Weapon); |
666 | + | TextDrawShowForPlayer(playerid, Text:Armes); |
667 | - | TextDrawShowForPlayer(playerid, Text:Sawnoff); |
667 | + | TextDrawShowForPlayer(playerid, Text:M4); |
668 | - | TextDrawShowForPlayer(playerid, Text:shotgun); |
668 | + | TextDrawShowForPlayer(playerid, Text:Box); |
669 | - | TextDrawShowForPlayer(playerid, Text:Box); |
669 | + | TextDrawShowForPlayer(playerid, Text:Pressy); |
670 | - | TextDrawShowForPlayer(playerid, Text:Pressy); |
670 | + | TextDrawShowForPlayer(playerid, Text:Pressn); |
671 | - | TextDrawShowForPlayer(playerid, Text:Pressn); |
671 | + | TextDrawShowForPlayer(playerid, Text:Munitions); |
672 | - | TextDrawShowForPlayer(playerid, Text:Ammo); |
672 | + | TextDrawShowForPlayer(playerid, Text:Prix); |
673 | - | TextDrawShowForPlayer(playerid, Text:Price); |
673 | + | TextDrawShowForPlayer(playerid, Text:Munitions500); |
674 | - | TextDrawShowForPlayer(playerid, Text:Ammo200); |
674 | + | TextDrawShowForPlayer(playerid, Text:Prix8000); |
675 | - | TextDrawShowForPlayer(playerid, Text:Price9000); |
675 | + | SetPlayerCameraPos(playerid, 316.6595, -163.8956, 1000.1425); |
676 | - | SetPlayerCameraPos(playerid, 308.0452, -161.1160, 1000.1425); |
676 | + | SetPlayerCameraLookAt(playerid, 314.9826, -163.2139, 999.5625); |
677 | - | SetPlayerCameraLookAt(playerid, 310.0738, -161.4842, 999.5625); |
677 | + | |
678 | } | |
679 | ||
680 | - | } |
680 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, -1044.7114,2589.9053,141.2628)) |
681 | - | |
681 | + | |
682 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 311.46, -161.44, 999.62)) |
682 | + | if (PRESSED(KEY_YES)) |
683 | - | { |
683 | + | { |
684 | - | if (PRESSED(KEY_YES)) |
684 | + | if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous n'avez pas assez d'argent !"); |
685 | - | { |
685 | + | TogglePlayerControllable(playerid,1); |
686 | - | if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to buy that weapon."); |
686 | + | SetCameraBehindPlayer(playerid); |
687 | - | TogglePlayerControllable(playerid,1); |
687 | + | TextDrawHideForPlayer(playerid, Text:Armes); |
688 | - | SetCameraBehindPlayer(playerid); |
688 | + | TextDrawHideForPlayer(playerid, Text:Country); |
689 | - | TextDrawHideForPlayer(playerid, Text:Weapon); |
689 | + | TextDrawHideForPlayer(playerid, Text:rifle); |
690 | - | TextDrawHideForPlayer(playerid, Text:shotgun); |
690 | + | TextDrawHideForPlayer(playerid, Text:Box); |
691 | - | TextDrawHideForPlayer(playerid, Text:Combat); |
691 | + | TextDrawHideForPlayer(playerid, Text:Pressy); |
692 | - | TextDrawHideForPlayer(playerid, Text:Box); |
692 | + | TextDrawHideForPlayer(playerid, Text:Pressn); |
693 | - | TextDrawHideForPlayer(playerid, Text:Pressy); |
693 | + | TextDrawHideForPlayer(playerid, Text:Munitions); |
694 | - | TextDrawHideForPlayer(playerid, Text:Pressn); |
694 | + | TextDrawHideForPlayer(playerid, Text:Prix); |
695 | - | TextDrawHideForPlayer(playerid, Text:Ammo); |
695 | + | TextDrawHideForPlayer(playerid, Text:Munitions200); |
696 | - | TextDrawHideForPlayer(playerid, Text:Price); |
696 | + | TextDrawHideForPlayer(playerid, Text:Prix8000); |
697 | - | TextDrawHideForPlayer(playerid, Text:Ammo200); |
697 | + | SendClientMessage(playerid,0xFFFFFFFF,"{00A9D4}[Info] {D99F00}Vous venez d'acheter un Country-Rifle pour 8.000$ avec 200 Munitions"); |
698 | - | TextDrawHideForPlayer(playerid, Text:Price8000); |
698 | + | GivePlayerWeapon(playerid, 33, 200); |
699 | - | SendClientMessage(playerid, COLOR_GREEN, "You just bought a Combat Shotgun with 200 ammo for $8,000!"); |
699 | + | GivePlayerMoney(playerid, -8000); |
700 | - | GivePlayerWeapon(playerid, 27, 200); |
700 | + | new Skin = GetPlayerSkin(playerid); |
701 | - | GivePlayerMoney(playerid, -8000); |
701 | + | SetPlayerSkin(playerid, Skin); |
702 | - | new Skin = GetPlayerSkin(playerid); |
702 | + | } |
703 | - | SetPlayerSkin(playerid, Skin); |
703 | + | |
704 | - | } |
704 | + | if (PRESSED(KEY_SECONDARY_ATTACK)) |
705 | - | } |
705 | + | |
706 | - | if (PRESSED(KEY_SECONDARY_ATTACK)) |
706 | + | if(IsPlayerInRangeOfPoint(playerid,1.0, -1044.7114,2589.9053,141.2628)) |
707 | { | |
708 | - | if(IsPlayerInRangeOfPoint(playerid,1.0, 311.46, -161.44, 999.62)) |
708 | + | |
709 | ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1); | |
710 | TextDrawShowForPlayer(playerid, Text:Armes); | |
711 | TextDrawShowForPlayer(playerid, Text:Country); | |
712 | - | TextDrawShowForPlayer(playerid, Text:Weapon); |
712 | + | TextDrawShowForPlayer(playerid, Text:rifle); |
713 | - | TextDrawShowForPlayer(playerid, Text:shotgun); |
713 | + | TextDrawShowForPlayer(playerid, Text:Box); |
714 | - | TextDrawShowForPlayer(playerid, Text:Combat); |
714 | + | TextDrawShowForPlayer(playerid, Text:Pressy); |
715 | - | TextDrawShowForPlayer(playerid, Text:Box); |
715 | + | TextDrawShowForPlayer(playerid, Text:Pressn); |
716 | - | TextDrawShowForPlayer(playerid, Text:Pressy); |
716 | + | TextDrawShowForPlayer(playerid, Text:Munitions); |
717 | - | TextDrawShowForPlayer(playerid, Text:Pressn); |
717 | + | TextDrawShowForPlayer(playerid, Text:Prix); |
718 | - | TextDrawShowForPlayer(playerid, Text:Ammo); |
718 | + | TextDrawShowForPlayer(playerid, Text:Munitions200); |
719 | - | TextDrawShowForPlayer(playerid, Text:Price); |
719 | + | TextDrawShowForPlayer(playerid, Text:Prix8000); |
720 | - | TextDrawShowForPlayer(playerid, Text:Ammo200); |
720 | + | SetPlayerCameraPos(playerid, 313.8457, -163.7814, 1000.1425); |
721 | - | TextDrawShowForPlayer(playerid, Text:Price8000); |
721 | + | SetPlayerCameraLookAt(playerid, 314.2114, -162.3438, 999.5625); |
722 | - | SetPlayerCameraPos(playerid, 312.6877, -161.2530, 1000.1425); |
722 | + | } |
723 | - | SetPlayerCameraLookAt(playerid, 311.0968, -161.5094, 999.5625); |
723 | + | |
724 | ||
725 | - | } |
725 | + | return 1; |
726 | - | |
726 | + |