Programación en Pawn - SAMP

[FS] SISTEMA EVENTO CERVEZA PARECIDO A FZ

¿Tienes un FilterScript muy bueno y quieres compartirlo con los demás? ¿Qué esperas? ¡Muéstranoslo aquí!
Reglas del Foro

  • Al liberar un FilterScript, debes informar sobre qué trata el código claramente, imágenes o vídeos y la explicación de cómo usarlo.
  • En caso de que quieras publicar un TextDraw que únicamente cumpla una función estética (como ser un TextDraw que muestra el nombre del servidor), es decir, no cumple ninguna función más que decorativa/visual (a diferencia de un TextDraw que realiza la función de velocímetro y contiene los códigos para ello, por ejemplo), debe ir en la sección Guías y Aportes.
  • Si el link de descarga no funciona, el tema será eliminado.
  • Si no eres el autor del FilterScript o has utilizado códigos de otros autores, recuerda colocar los créditos correspondientes. (El plagio es motivo de sanción).

Moderador: Ayudantes

Hola que tal soy Boner, hoy traigo un sistema que veo que muchos pidiendo y nadie lo aporta.
Yo me pregunté: Por que no ponerlo para todo server no solo bases OZ,así que hice este [FS]
Aquí te dejo este bonito sistema,pido que respetes creditos y que los disfrutes :)
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}


CMD:fiesta(playerid, params[])
{

	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}


CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{
	
	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}





//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 339

FOTOS:
Spoiler:



Nos vemos en mi próximo [FS]
Mala identacion del codigo, poco legible. Muchas lineas innecesarias, callbacks innecesarios.

No me gusta.

((sin contar que es una copia a otro servidor))
FedeNet escribió:
14 Jun 2018 19:39
Mala identacion del codigo, poco legible. Muchas lineas innecesarias, callbacks innecesarios.

No me gusta.

((sin contar que es una copia a otro servidor))
Gracias por la opinión bro. -hi -hi
No soy un experto en esto se hace lo que se puede,trataré de mejorar. -hi -good

Gracias.
Saludos -hi -hi
Bro como hago para que solo el admin lo pueda hacer?
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

CMD:daradmin(playerid, params[])
{
	new string[126];
	new ID,ADMIN;
	if(PlayerInfo[playerid][jAdminNvl] < 6) return 0;
	if(sscanf(params, "dd", ID,ADMIN)) return SendClientMessage(playerid,COLOR_WHITE,"Error.");
	if(!strcmp(NombreJugador(ID), "Matias_Wutang")) return SendClientMessage(playerid,COLOR_WHITE,"Error.");
	else if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,COLOR_WHITE,"Jugador no conectado.");
	else
	{
		if(ADMIN == 0)
		{
			format(string, sizeof(string), "Expulsaste del staff a {0000CC}%s{FFFFFF}", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 0;
		}
		if(ADMIN == 1)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Ayudante del Canal de Dudas.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Ayudante del Canal Dudas {0000CC}(1){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 1;
		}
		if(ADMIN == 2)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora{0000CC}%s{FFFFFF} es Moderador del Canal de Dudas.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Moderador del Canal Dudas {0000CC}(2){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 2;
		}
       	if(ADMIN == 3)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Moderador de Juego.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Moderador de Juego {0000CC}(3){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 3;
		}
		if(ADMIN == 4)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Moderador Global.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Moderador Global {0000CC}(4){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 4;
		}
		if(ADMIN == 5)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Sub Administrador.", NombreJugador(ID));
			SendClientMessage(ID,0x2AFF0000, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Sub Administrador {0000CC}(5){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 5;
		}
		if(ADMIN == 6)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Administrador.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Administrador {0000CC}(6){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 6;
		}
	}
	return 1;
}
  Cantidad de llaves: Abiertas(59)-Cerradas(59) | Lineas Totales: 74
Theskiles escribió:
14 Jun 2018 19:50
Bro como hago para que solo el admin lo pueda hacer?
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

CMD:daradmin(playerid, params[])
{
	new string[126];
	new ID,ADMIN;
	if(PlayerInfo[playerid][jAdminNvl] < 6) return 0;
	if(sscanf(params, "dd", ID,ADMIN)) return SendClientMessage(playerid,COLOR_WHITE,"Error.");
	if(!strcmp(NombreJugador(ID), "Matias_Wutang")) return SendClientMessage(playerid,COLOR_WHITE,"Error.");
	else if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,COLOR_WHITE,"Jugador no conectado.");
	else
	{
		if(ADMIN == 0)
		{
			format(string, sizeof(string), "Expulsaste del staff a {0000CC}%s{FFFFFF}", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 0;
		}
		if(ADMIN == 1)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Ayudante del Canal de Dudas.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Ayudante del Canal Dudas {0000CC}(1){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 1;
		}
		if(ADMIN == 2)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora{0000CC}%s{FFFFFF} es Moderador del Canal de Dudas.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Moderador del Canal Dudas {0000CC}(2){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 2;
		}
       	if(ADMIN == 3)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Moderador de Juego.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Moderador de Juego {0000CC}(3){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 3;
		}
		if(ADMIN == 4)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Moderador Global.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Moderador Global {0000CC}(4){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 4;
		}
		if(ADMIN == 5)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Sub Administrador.", NombreJugador(ID));
			SendClientMessage(ID,0x2AFF0000, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Sub Administrador {0000CC}(5){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 5;
		}
		if(ADMIN == 6)
		{
			format(string, sizeof(string), "{DBED15}¡Felicitaciones!{FFFFFF} ahora {0000CC}%s{FFFFFF} es Administrador.", NombreJugador(ID));
			SendClientMessage(ID,0xFFFFFFFF, string);
			format(string, sizeof(string), "Has hecho a {0000CC}%s{FFFFFF} Administrador {0000CC}(6){FFFFFF}.", NombreJugador(ID));
			SendClientMessage(playerid,0xFFFFFFFF, string);
			Log("logs/daradmin.log", string);
			PlayerInfo[ID][jAdminNvl] = 6;
		}
	}
	return 1;
}
  Cantidad de llaves: Abiertas(59)-Cerradas(59) | Lineas Totales: 74
Para tu gm es así es bro.
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

CMD:fiesta(playerid, params[])
{
        if(PlayerInfo[playerid][jAdminNvl] < 6) return 0;//Solo el rango de admin 
//==RECUERDA QUE TAL VARIABLE NO ESTA DEFINIDA POR LO TANTO ADAPTA EL FS A TU GM

	new opcion[16];

	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{
	AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{
	DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}

  Cantidad de llaves: Abiertas(3)-Cerradas(3) | Lineas Totales: 21
Saludos -hi
Buen aporte pero lo ubieras hecho unos 8 o 7 meses y me ubiera ahorrado yo pasar trabajo buscando id para el mapeo xd
BonerMap escribió:
14 Jun 2018 19:20
Hola que tal soy Boner, hoy traigo un sistema que veo que muchos pidiendo y nadie lo aporta.
Yo me pregunté: Por que no ponerlo para todo server no solo bases OZ,así que hice este [FS]
Aquí te dejo este bonito sistema,pido que respetes creditos y que los disfrutes :)
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}


CMD:fiesta(playerid, params[])
{

	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}


CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{
	
	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}





//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 339

FOTOS:
Spoiler:



Nos vemos en mi próximo [FS]
Buen sistema pero ahi 3 errores habia 2 warrings ya quitados por mi persona era una cosa sencilla que tenia espacio nada mas
el tercer error esta en comprar cerveza No has puesto las cordenadas por lo cual cuando ultilizas comprar cerveza no funciona

Sistema sin los 2 warrings:
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}

CMD:fiesta(playerid, params[])
{
	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}

CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{

	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}

//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 332
de optimizar no pude porque no se si supiera lo optimizaria Saludos.
Junior Luna Amador escribió:
14 Jun 2018 22:37
Buen aporte pero lo ubieras hecho unos 8 o 7 meses y me ubiera ahorrado yo pasar trabajo buscando id para el mapeo xd
Gracias.
Sí es que el mapeo no lo tenia jajaja.
Saludos. -hi
AndrewQuintero escribió:
15 Jun 2018 07:05
BonerMap escribió:
14 Jun 2018 19:20
Hola que tal soy Boner, hoy traigo un sistema que veo que muchos pidiendo y nadie lo aporta.
Yo me pregunté: Por que no ponerlo para todo server no solo bases OZ,así que hice este [FS]
Aquí te dejo este bonito sistema,pido que respetes creditos y que los disfrutes :)
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}


CMD:fiesta(playerid, params[])
{

	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}


CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{
	
	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}





//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 339

FOTOS:
Spoiler:



Nos vemos en mi próximo [FS]
Buen sistema pero ahi 3 errores habia 2 warrings ya quitados por mi persona era una cosa sencilla que tenia espacio nada mas
el tercer error esta en comprar cerveza No has puesto las cordenadas por lo cual cuando ultilizas comprar cerveza no funciona

Sistema sin los 2 warrings:
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}

CMD:fiesta(playerid, params[])
{
	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}

CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{

	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}

//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 332
de optimizar no pude porque no se si supiera lo optimizaria Saludos.

Vastante rraro que te diera warnings a mi no me dio ni 1.
Le puse comprar_cervezar por que a los que usan oz talvez no les funcionaria.

Gracias.
Saludos.. -hi
BonerMap escribió:
15 Jun 2018 08:34
AndrewQuintero escribió:
15 Jun 2018 07:05
BonerMap escribió:
14 Jun 2018 19:20
Hola que tal soy Boner, hoy traigo un sistema que veo que muchos pidiendo y nadie lo aporta.
Yo me pregunté: Por que no ponerlo para todo server no solo bases OZ,así que hice este [FS]
Aquí te dejo este bonito sistema,pido que respetes creditos y que los disfrutes :)
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}


CMD:fiesta(playerid, params[])
{

	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}


CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{
	
	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}





//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 339

FOTOS:
Spoiler:



Nos vemos en mi próximo [FS]
Buen sistema pero ahi 3 errores habia 2 warrings ya quitados por mi persona era una cosa sencilla que tenia espacio nada mas
el tercer error esta en comprar cerveza No has puesto las cordenadas por lo cual cuando ultilizas comprar cerveza no funciona

Sistema sin los 2 warrings:
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}

CMD:fiesta(playerid, params[])
{
	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}

CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{

	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}

//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 332
de optimizar no pude porque no se si supiera lo optimizaria Saludos.

Vastante rraro que te diera warnings a mi no me dio ni 1.
Le puse comprar_cervezar por que a los que usan oz talvez no les funcionaria.

Gracias.
Saludos.. -hi
De nada!!
Es porque al momento de poner un codigo o algo en
[pawn=

se desorganiza el codigo y eso causa el warning 217 q es codigo mal organizado
Spoiler:
BonerMap escribió:
14 Jun 2018 19:20
Hola que tal soy Boner, hoy traigo un sistema que veo que muchos pidiendo y nadie lo aporta.
Yo me pregunté: Por que no ponerlo para todo server no solo bases OZ,así que hice este [FS]
Aquí te dejo este bonito sistema,pido que respetes creditos y que los disfrutes :)
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}


CMD:fiesta(playerid, params[])
{

	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}


CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{
	
	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}





//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 339

FOTOS:
Spoiler:



Nos vemos en mi próximo [FS]
Buen aporte, yo quería aportarlo pero como no juego en ese tipo de servidores no lo hice, mas sin embargo concuerdo con
Fedenet
FedeNet escribió: Mala identacion del codigo, poco legible. Muchas lineas innecesarias, callbacks innecesarios.

No me gusta.

((sin contar que es una copia a otro servidor))
Me tomé el atrevimiento de modificarlo a un código mejor (a mi punto de vista), si me equivoqué en algo favor corregir :)
Código:
Imágenes:

Créditos en el archivo.
Plugins e includes necesarios: streamer, sscanf2, zcmd, el link de descarga de cada uno está en el archivo.
NOTA: Para los actores dinámicos es necesario la versión 2.9.3 de streamer, si no pueden cambiar a actores normales.
¿Qué tiene de diferencia?
Mejor código, creación y destrucción de objetos, ocultar objetos que no son usados sin removerlos permanentemente (RemoveBuilding)
Mejor texto...
Eduardo_1 escribió:
15 Jun 2018 14:02
Spoiler:
BonerMap escribió:
14 Jun 2018 19:20
Hola que tal soy Boner, hoy traigo un sistema que veo que muchos pidiendo y nadie lo aporta.
Yo me pregunté: Por que no ponerlo para todo server no solo bases OZ,así que hice este [FS]
Aquí te dejo este bonito sistema,pido que respetes creditos y que los disfrutes :)
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

//======================SISTEMA FIESTA DE LA CERVEZA PARECIDO A FZ BY BONER[MAP]
/*CREDITOS SCRIPT: BONER
CREDITOS MAPEO:  Kalen (Procton)*/

#include <streamer>
#include <a_samp>
#include <zcmd>//include necesario
#include <sscanf2>//también necesario
#include <a_actor>
#if defined FILTERSCRIPT
#else


main()
{
	print("\n----------------------------------");
	print("SISTEMA CARGADO CORRECTAMENTE");
	print("----------------------------------\n");
}

#endif
public OnFilterScriptInit()
{
	Loscactors();
	print("\n-------------CARGADO SISTEMA-------------------------");
	print("Fiesta de la cerveza FZ");
	print("-------------SISTEMA BY BONER-------------------------\n");
	return 1;
}
new Text3D:TexCerveza[6];
new despachadors[9];
new Cosascerveza[133];
new eventoactivo;
//============================================ACTORS

Loscactors()
{
eventoactivo =0;
despachadors[0]=CreateActor(11, 1468.461303, -1708.955322, 14.046875, 265.248321);
despachadors[1]=CreateActor(172, 1488.803710, -1709.469482, 14.046875, 92.310066);
despachadors[2]=CreateActor(171, 1488.646728, -1698.444946, 14.046875, 94.190063);
despachadors[3]=CreateActor(171, 1468.495239, -1699.065307, 14.046875, 269.948333);
despachadors[4]=CreateActor(171, 1471.025268, -1687.724731, 14.046875, 257.583251);
despachadors[5]=CreateActor(171, 1488.621459, -1688.504272, 14.046875, 91.683380);
despachadors[6]=CreateActor(98, 1478.955078, -1673.528930, 14.061875, 170.354202);
despachadors[7]=CreateActor(172, 1481.350463, -1675.218017, 14.061875, 183.514251);
despachadors[8]=CreateActor(171, 1476.494873, -1675.082031, 14.061875, 182.887649);
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[8], 1);
}
AeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 0); SetActorVirtualWorld(despachadors[1], 0); SetActorVirtualWorld(despachadors[2], 0); SetActorVirtualWorld(despachadors[3], 0);
SetActorVirtualWorld(despachadors[4], 0); SetActorVirtualWorld(despachadors[5], 0); SetActorVirtualWorld(despachadors[6], 0); SetActorVirtualWorld(despachadors[7], 0);
SetActorVirtualWorld(despachadors[8], 0);
//====ANIMACION ACTOR[NO ES LA MISMA,CAMBIALA]
ApplyActorAnimation(despachadors[0], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[1], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[2], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[3], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[4], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[5], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[6], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[7], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
ApplyActorAnimation(despachadors[8], "DANCING","DAN_Down_A", 4.1,1,0,0,1,0);
//=====================MAPEO=================================================================================
Cosascerveza[0] =CreateDynamicObject(4724, 1478.80005, -1617.30005, 15.10000,   0.00000, 0.00000, 48.00000);
Cosascerveza[1] =CreateDynamicObject(983, 1515.50000, -1692.50000, 13.70000,   0.00000, 0.00000, 2.00000);
Cosascerveza[2] =CreateDynamicObject(983, 1515.59998, -1698.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[4] =CreateDynamicObject(983, 1515.59998, -1705.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[5] =CreateDynamicObject(983, 1515.59998, -1711.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[6] =CreateDynamicObject(983, 1515.59998, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[7] =CreateDynamicObject(983, 1512.40002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[8] =CreateDynamicObject(983, 1506.00000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[9] =CreateDynamicObject(983, 1499.59998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1493.19995, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[10] =CreateDynamicObject(983, 1515.59998, -1638.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[12] =CreateDynamicObject(983, 1515.59998, -1632.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[13] =CreateDynamicObject(983, 1515.59998, -1625.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[14] =CreateDynamicObject(983, 1515.59998, -1619.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[15] =CreateDynamicObject(983, 1515.59998, -1613.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[16] =CreateDynamicObject(983, 1515.59998, -1609.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[17] =CreateDynamicObject(983, 1512.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[18] =CreateDynamicObject(983, 1506.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 92.00000);
Cosascerveza[19] =CreateDynamicObject(983, 1499.80005, -1606.80005, 13.70000,   0.00000, 0.00000, 88.00000);
Cosascerveza[20] =CreateDynamicObject(983, 1493.40002, -1606.69995, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[21] =CreateDynamicObject(983, 1488.09998, -1609.19995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[22] =CreateDynamicObject(983, 1486.00000, -1611.69995, 13.70000,   0.00000, 0.00000, 320.00000);
Cosascerveza[23] =CreateDynamicObject(983, 1470.90002, -1612.30005, 13.70000,   0.00000, 0.00000, 50.00000);
Cosascerveza[24] =CreateDynamicObject(983, 1465.80005, -1608.50000, 13.70000,   0.00000, 0.00000, 56.00000);
Cosascerveza[25] =CreateDynamicObject(983, 1460.00000, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[26] =CreateDynamicObject(983, 1453.59998, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[27] =CreateDynamicObject(983, 1447.19995, -1606.80005, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[28] =CreateDynamicObject(983, 1444.00000, -1610.00000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[29] =CreateDynamicObject(983, 1444.00000, -1616.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[30] =CreateDynamicObject(983, 1444.00000, -1622.80005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[31] =CreateDynamicObject(983, 1444.00000, -1629.19995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[32] =CreateDynamicObject(983, 1444.00000, -1632.40002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[33] =CreateDynamicObject(983, 1463.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1457.50000, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[35] =CreateDynamicObject(983, 1451.09998, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[36] =CreateDynamicObject(983, 1447.90002, -1718.09998, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[37] =CreateDynamicObject(983, 1444.69995, -1714.90002, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[34] =CreateDynamicObject(983, 1444.69995, -1708.50000, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[39] =CreateDynamicObject(983, 1444.69995, -1702.09998, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[40] =CreateDynamicObject(983, 1444.69995, -1695.69995, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[41] =CreateDynamicObject(983, 1444.69995, -1689.30005, 13.70000,   0.00000, 0.00000, 0.00000);
Cosascerveza[42] =CreateDynamicObject(983, 1444.90002, -1682.90002, 13.70000,   0.00000, 0.00000, 356.00000);
Cosascerveza[43] =CreateDynamicObject(17055, 1454.27429, -1675.85522, 15.14157,   0.00000, 0.00000, 271.75879);
Cosascerveza[44] =CreateDynamicObject(3286, 1461.03430, -1659.73865, 17.80060,   0.00000, 0.00000, 0.00000);
Cosascerveza[45] =CreateDynamicObject(700, 1498.74097, -1710.37708, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[46] =CreateDynamicObject(700, 1499.50281, -1696.61536, 13.72656,   356.85840, 0.00000, 3.14159);
Cosascerveza[47] =CreateDynamicObject(641, 1494.62268, -1710.68396, 11.10156,   356.85840, 0.00000, 3.14159);
Cosascerveza[48] =CreateDynamicObject(620, 1499.42749, -1706.87927, 11.83594,   356.85840, 0.00000, 3.14159);
Cosascerveza[49] =CreateDynamicObject(673, 1493.28943, -1708.06934, 12.39844,   356.85840, 0.00000, 3.14159);
Cosascerveza[50] =CreateDynamicObject(1231, 1491.70972, -1682.38379, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[51] =CreateDynamicObject(1231, 1491.73425, -1713.63037, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[52] =CreateDynamicObject(1231, 1465.30127, -1713.59302, 15.62500,   356.85840, 0.00000, 3.14159);
Cosascerveza[53] =CreateDynamicObject(1231, 1465.17444, -1682.35266, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[54] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[55] =CreateDynamicObject(19608, 1479.12976, -1675.19836, 13.01500,   0.00000, 0.00000, 359.99899);
Cosascerveza[56] =CreateDynamicObject(19613, 1483.03333, -1678.07471, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[57] =CreateDynamicObject(19613, 1484.02100, -1677.91602, 13.03330,   0.00000, 0.00000, 8.90462);
Cosascerveza[58] =CreateDynamicObject(19613, 1483.57971, -1677.96045, 13.73220,   0.00000, 0.00000, 10.28010);
Cosascerveza[59] =CreateDynamicObject(19613, 1474.81689, -1677.86499, 13.77220,   0.00000, 0.00000, 353.19330);
Cosascerveza[60] =CreateDynamicObject(19613, 1475.27063, -1677.91101, 13.03330,   0.00000, 0.00000, 351.64700);
Cosascerveza[61] =CreateDynamicObject(19613, 1474.40393, -1677.81335, 13.03330,   0.00000, 0.00000, 351.47437);
Cosascerveza[62] =CreateDynamicObject(19614, 1474.77185, -1678.39685, 13.05670,   0.00000, 0.00000, 351.83331);
Cosascerveza[63] =CreateDynamicObject(19614, 1483.69250, -1678.50427, 13.05670,   0.00000, 0.00000, 9.49395);
Cosascerveza[64] =CreateDynamicObject(19609, 1479.10046, -1674.22473, 13.06035,   0.00000, 0.00000, 0.00000);
Cosascerveza[65] =CreateDynamicObject(19610, 1479.10291, -1676.35437, 14.49520,   16.00000, -4.00000, 1.64820);
Cosascerveza[66] =CreateDynamicObject(19617, 1474.99963, -1674.52515, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[67] =CreateDynamicObject(19617, 1475.00708, -1675.95007, 13.58310,   0.00000, 0.00000, 89.49510);
Cosascerveza[68] =CreateDynamicObject(19617, 1483.24902, -1673.98511, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[69] =CreateDynamicObject(19617, 1483.26904, -1675.88513, 13.58720,   0.00000, 0.00000, 270.73959);
Cosascerveza[70] =CreateDynamicObject(1231, 1478.85181, -1702.41333, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[71] =CreateDynamicObject(1231, 1478.70239, -1693.22778, 15.63281,   356.85840, 0.00000, 3.14159);
Cosascerveza[72] =CreateDynamicObject(712, 1479.36365, -1665.99829, 22.25781,   3.14159, 0.00000, 2.78910);
Cosascerveza[73] =CreateDynamicObject(12921, 1478.25061, -1718.24927, 16.15084,   0.00000, 0.00000, 359.56467);
Cosascerveza[74] =CreateDynamicObject(3861, 1468.84741, -1708.81409, 14.19930,   0.00000, 0.00000, 89.77126);
Cosascerveza[75] =CreateDynamicObject(3862, 1469.22156, -1687.97290, 14.22080,   0.00000, 0.00000, 90.05050);
Cosascerveza[76] =CreateDynamicObject(1280, 1467.89478, -1704.05969, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[77] =CreateDynamicObject(1280, 1467.96973, -1713.51746, 13.45310,   0.00000, 0.00000, 181.00000);
Cosascerveza[78] =CreateDynamicObject(3863, 1468.87842, -1699.00720, 14.20720,   0.00000, 0.00000, 89.34119);
Cosascerveza[79] =CreateDynamicObject(3862, 1488.23596, -1688.56287, 14.22080,   0.00000, 0.00000, 270.00580);
Cosascerveza[80] =CreateDynamicObject(3863, 1488.26868, -1698.94373, 14.20720,   0.00000, 0.00000, 270.00577);
Cosascerveza[81] =CreateDynamicObject(3861, 1488.19421, -1709.41479, 14.19930,   0.00000, 0.00000, 269.59973);
Cosascerveza[82] =CreateDynamicObject(1280, 1488.97583, -1714.16089, 13.45310,   360.00000, 0.00000, 360.00000);
Cosascerveza[83] =CreateDynamicObject(625, 1456.71350, -1644.79504, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[84] =CreateDynamicObject(625, 1458.10535, -1657.66321, 13.69531,   356.85840, 0.00000, 3.14159);
Cosascerveza[85] =CreateDynamicObject(17055, 1497.58276, -1675.24414, 15.14157,   0.00000, 0.00000, 91.96638);
Cosascerveza[86] =CreateDynamicObject(832, 1480.57764, -1700.21851, 12.95090,   0.00000, 0.00000, 219.33569);
Cosascerveza[87] =CreateDynamicObject(832, 1480.58508, -1696.12427, 12.95090,   0.00000, 0.00000, 226.56580);
Cosascerveza[88] =CreateDynamicObject(1670, 1487.41199, -1687.71997, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[89] =CreateDynamicObject(1670, 1487.45398, -1698.47327, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[90] =CreateDynamicObject(1670, 1487.34631, -1708.47302, 13.96980,   0.00000, 0.00000, 0.00000);
Cosascerveza[91] =CreateDynamicObject(19820, 1487.52295, -1699.85376, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[92] =CreateDynamicObject(19820, 1487.15527, -1699.21814, 13.85117,   0.00000, 0.00000, 0.00000);
Cosascerveza[93] =CreateDynamicObject(19821, 1487.42004, -1710.47327, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[94] =CreateDynamicObject(19821, 1487.16992, -1709.66516, 13.84263,   0.00000, 0.00000, 0.00000);
Cosascerveza[95] =CreateDynamicObject(19821, 1487.09753, -1687.62390, 13.86425,   0.00000, 0.00000, 0.00000);
Cosascerveza[96] =CreateDynamicObject(19821, 1469.94910, -1688.19653, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[97] =CreateDynamicObject(19821, 1470.23877, -1687.05579, 13.86418,   0.00000, 0.00000, 0.00000);
Cosascerveza[98] =CreateDynamicObject(19823, 1469.94360, -1687.75562, 13.85432,   0.00000, 0.00000, 0.00000);
Cosascerveza[99] =CreateDynamicObject(19823, 1469.51697, -1698.89124, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[100] =CreateDynamicObject(19823, 1469.58618, -1698.19226, 13.85041,   0.00000, 0.00000, 0.00000);
Cosascerveza[101] =CreateDynamicObject(19824, 1469.62988, -1699.89282, 13.85034,   0.00000, 0.00000, 0.00000);
Cosascerveza[102] =CreateDynamicObject(19824, 1469.65979, -1708.32031, 13.84223,   0.00000, 0.00000, 0.00000);
Cosascerveza[103] =CreateDynamicObject(19821, 1469.74402, -1709.80994, 13.84212,   0.00000, 0.00000, 0.00000);
Cosascerveza[104] =CreateDynamicObject(19820, 1469.75586, -1709.01355, 13.84217,   0.00000, 0.00000, 0.00000);
Cosascerveza[105] =CreateDynamicObject(832, 1477.08313, -1699.45129, 12.82991,   0.00000, 0.00000, 30.27012);
Cosascerveza[106] =CreateDynamicObject(832, 1477.06738, -1694.98694, 12.82382,   0.00000, 0.00000, 28.04523);
Cosascerveza[107] =CreateDynamicObject(19820, 1478.87183, -1697.76892, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[108] =CreateDynamicObject(19821, 1478.54456, -1694.42200, 13.88931,   0.00000, 0.00000, 0.00000);
Cosascerveza[109] =CreateDynamicObject(19823, 1478.86975, -1701.19995, 13.90930,   0.00000, 0.00000, 0.00000);
Cosascerveza[110] =CreateDynamicObject(19824, 1478.70410, -1700.28406, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[111] =CreateDynamicObject(19821, 1478.75354, -1698.86047, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[112] =CreateDynamicObject(19823, 1478.54932, -1696.44055, 13.89032,   0.00000, 0.00000, 0.00000);
Cosascerveza[113] =CreateDynamicObject(1362, 1467.76501, -1691.53235, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[114] =CreateDynamicObject(1362, 1489.20435, -1695.68347, 13.64250,   0.00000, 0.00000, 0.00000);
Cosascerveza[115] =CreateDynamicObject(2357, 1478.80872, -1700.08667, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[116] =CreateDynamicObject(2357, 1478.80774, -1695.83435, 13.53090,   0.00000, 0.00000, 270.04990);
Cosascerveza[117] =CreateDynamicObject(19824, 1479.10852, -1695.95776, 13.88940,   0.00000, 0.00000, 0.00000);
Cosascerveza[118] =CreateDynamicObject(19821, 1479.27942, -1700.02673, 13.88955,   0.00000, 0.00000, 0.00000);
Cosascerveza[119] =CreateDynamicObject(19820, 1479.31860, -1701.87476, 13.88919,   0.00000, 0.00000, 0.00000);
Cosascerveza[120] =CreateDynamicObject(18761, 1478.94067, -1672.25745, 18.05470,   0.00000, 0.00000, 0.72556);
Cosascerveza[121] =CreateDynamicObject(1280, 1488.95837, -1683.02576, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[122] =CreateDynamicObject(1280, 1489.11438, -1693.36072, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[123] =CreateDynamicObject(1280, 1489.05383, -1704.22852, 13.46000,   0.00000, 0.00000, 1.48990);
Cosascerveza[124] =CreateDynamicObject(1280, 1467.99915, -1694.17725, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[125] =CreateDynamicObject(1280, 1468.07410, -1682.87170, 13.43310,   0.00000, 0.00000, 181.00000);
Cosascerveza[126] =CreateDynamicObject(1371, 1467.90747, -1711.13123, 13.65889,   0.00000, 0.00000, 88.81628);
Cosascerveza[127] =CreateDynamicObject(1371, 1489.20435, -1711.75684, 13.68260,   0.00000, 0.00000, 268.43051);
Cosascerveza[128] =CreateDynamicObject(983, 1488.70825, -1718.09436, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[129] =CreateDynamicObject(983, 1467.80530, -1718.10864, 13.70000,   0.00000, 0.00000, 90.00000);
Cosascerveza[130] =CreateDynamicObject(13367, 1462.62451, -1675.79749, 9.81785,   0.00000, 0.00000, 0.00000);
Cosascerveza[131] =CreateDynamicObject(3498, 1479.07141, -1676.75098, 9.18780,   0.00000, 0.00000, 0.00000);
Cosascerveza[132] =CreateDynamicObject(19348, 1479.08997, -1676.74475, 13.68500,   27.00000, 1.00000, 176.70010);

//=================LABEL========================================================================================================================================================
TexCerveza[0] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza",0xFFFFFFFF, 1486.4866,-1688.6428,14.0469, 10.0, 0, 0);
TexCerveza[1] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.5188,-1699.0400,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1486.4568,-1709.4843,14.0469, 10.0, 0, 0);
TexCerveza[3] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6085,-1708.9098,14.0469, 10.0, 0, 0);
TexCerveza[4] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.6146,-1698.8851,14.0469, 10.0, 0, 0);
TexCerveza[5] = Create3DTextLabel("\t{2BD5C4}Cerveza artesanal\n\n{FFFFFF}Precio:{ffffff}{00CC00}$10\n\n{FFFF00}/comprar cerveza", -1, 1470.9639,-1688.4258,14.0469, 10.0, 0, 0);
//===============================================================================================================================================================================
}

DeventoModelo()
{
SetActorVirtualWorld(despachadors[0], 1); SetActorVirtualWorld(despachadors[1], 1); SetActorVirtualWorld(despachadors[2], 1); SetActorVirtualWorld(despachadors[3], 1);
SetActorVirtualWorld(despachadors[4], 1); SetActorVirtualWorld(despachadors[5], 1); SetActorVirtualWorld(despachadors[6], 1); SetActorVirtualWorld(despachadors[7], 1);
SetActorVirtualWorld(despachadors[4], 1);
Delete3DTextLabel(TexCerveza[0]);Delete3DTextLabel(TexCerveza[1]);Delete3DTextLabel(TexCerveza[2]);
Delete3DTextLabel(TexCerveza[3]);Delete3DTextLabel(TexCerveza[4]);Delete3DTextLabel(TexCerveza[5]);
for(new c = 0; c<133; c++){
if(IsValidDynamicObject(Cosascerveza[c])){
DestroyDynamicObject(Cosascerveza[c]);}}
}
stock EZCOMPRACER(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4866,-1688.6428,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.5188,-1699.0400,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1486.4568,-1709.4843,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6085,-1708.9098,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.6146,-1698.8851,14.0469)) { return 1; }
else if(IsPlayerInRangeOfPoint(playerid, 4.0,1470.9639,-1688.4258,14.0469)) { return 1; }
return 0;
}


CMD:fiesta(playerid, params[])
{

	new opcion[16];
	if(sscanf(params, "s[16]", opcion)) return SendClientMessage(playerid, -1, "/fiesta activar/descativar");
	if(!strcmp(opcion, "activar", true))
	{AeventoModelo();	SendClientMessage(playerid, -1, "EVENTO CERVEZA ACTIVADO");eventoactivo =1;

		}
	else if(!strcmp(opcion, "desactivar", true))
	{DeventoModelo();SendClientMessage(playerid, -1, "EVENTO CERVEZA DESACTIVADO");eventoactivo =0;

	}
	return 1;
}


CMD:comprar(playerid, params[])
{
new cosacer[16];
if(!sscanf(params, "s[16]", cosacer))
{
	if(strcmp(cosacer, "cervezar",true)==0)
		{
	
	 	if(!EZCOMPRACER(playerid)) return 1;
 		if(eventoactivo == 1){
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
		SendClientMessage(playerid, -1, "Compraste una cerveza {00F000}10$");
		SendClientMessage(playerid, -1, "Presiona BIR{FFFFFF} para beber esta.");
		}
		return 1;}


  }

return 1;

}



public OnPlayerConnect(playerid)
{
//Objetos removidos, de la fiesta de la Cerveza por Kalen(Procton)
RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
return 1;
}


public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,20.0,1479.3867,-1684.2787,14.0469))
	{
	if(eventoactivo == 1){

		if(!GetPVarInt(playerid,"darmusica"))
		{


			SetPVarInt(playerid,"darmusica",1);
			new Float:Pos[3];
			GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
			PlayAudioStreamForPlayer(playerid,"URL MUSICA",Pos[0],Pos[1],Pos[2],50.0,1);

		}
	}
	else
	{
		if(GetPVarInt(playerid,"darmusica"))
		{
			DeletePVar(playerid,"darmusica");

		}
	}
	}



	return 1;
}





//===================================RESPETAR CREDITOS NO CUESTA NADA=============================================================
  Cantidad de llaves: Abiertas(60)-Cerradas(60) | Lineas Totales: 339

FOTOS:
Spoiler:



Nos vemos en mi próximo [FS]
Buen aporte, yo quería aportarlo pero como no juego en ese tipo de servidores no lo hice, mas sin embargo concuerdo con
Fedenet
FedeNet escribió: Mala identacion del codigo, poco legible. Muchas lineas innecesarias, callbacks innecesarios.

No me gusta.

((sin contar que es una copia a otro servidor))
Me tomé el atrevimiento de modificarlo a un código mejor (a mi punto de vista), si me equivoqué en algo favor corregir :)
Código:
Imágenes:

Créditos en el archivo.
Plugins e includes necesarios: streamer, sscanf2, zcmd, el link de descarga de cada uno está en el archivo.
NOTA: Para los actores dinámicos es necesario la versión 2.9.3 de streamer, si no pueden cambiar a actores normales.
¿Qué tiene de diferencia?
Mejor código, creación y destrucción de objetos, ocultar objetos que no son usados sin removerlos permanentemente (RemoveBuilding)
Mejor texto...
Gracias sí yo lo tengo optimizado solo que no lo liberé de tal forma por que la gente debe aprender un poquito y no todo a manos llenas.

Gracias por optimizarlo bro.
Un saludo.

¿Quién está conectado?

En total hay 2 usuarios conectados :: 0 registrados, 0 ocultos y 2 invitados (basados en usuarios activos en los últimos 5 minutos)
La mayor cantidad de usuarios identificados fue 855 el 27 May 2018 00:03

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 2 invitados