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.
340.
341.
342.
343.
344.
345.
346.
347.
348.
349.
350.
351.
352.
353.
354.
355.
356.
357.
358.
359.
360.
361.
362.
363.
364.
365.
366.
367.
368.
369.
370.
371.
372.
373.
374.
375.
376.
377.
378.
379.
380.
381.
382.
383.
384.
385.
386.
387.
388.
389.
390.
391.
392.
393.
394.
395.
396.
397.
398.
399.
400.
401.
402.
403.
404.
405.
406.
407.
408.
409.
410.
411.
412.
413.
414.
415.
416.
417.
418.
419.
420.
421.
422.
423.
424.
425.
426.
427.
428.
429.
430.
431.
432.
433.
434.
435.
436.
437.
438.
439.
440.
441.
442.
443.
444.
445.
446.
447.
448.
449.
450.
451.
452.
453.
454.
455.
456.
457.
458.
459.
460.
461.
462.
463.
464.
465.
466.
467.
468.
469.
470.
471.
472.
473.
474.
475.
476.
477.
478.
479.
480.
481.
482.
483.
484.
485.
486.
487.
488.
489.
490.
491.
492.
493.
494.
495.
496.
497.
498.
499.
500.
501.
502.
503.
504.
505.
506.
507.
508.
509.
510.
511.
512.
513.
514.
515.
516.
517.
518.
519.
520.
521.
522.
523.
524.
525.
526.
527.
528.
529.
530.
531.
532.
533.
534.
535.
536.
537.
538.
539.
540.
541.
542.
543.
544.
545.
546.
547.
548.
549.
550.
551.
552.
553.
554.
555.
556.
557.
558.
559.
560.
561.
562.
563.
564.
565.
566.
567.
568.
569.
570.
571.
572.
573.
574.
575.
576.
577.
578.
579.
580.
581.
582.
583.
584.
585.
586.
587.
588.
589.
590.
591.
592.
593.
594.
595.
596.
597.
598.
599.
600.
601.
602.
603.
604.
605.
606.
607.
608.
609.
610.
611.
612.
613.
614.
615.
616.
617.
618.
619.
620.
621.
622.
623.
624.
625.
626.
627.
628.
629.
630.
631.
632.
633.
634.
635.
636.
637.
638.
639.
640.
641.
642.
643.
644.
645.
646.
647.
648.
649.
650.
651.
652.
653.
654.
655.
656.
657.
658.
659.
660.
661.
662.
663.
664.
665.
666.
667.
668.
669.
670.
671.
672.
673.
674.
675.
676.
677.
678.
679.
680.
681.
682.
683.
684.
685.
686.
687.
688.
689.
690.
691.
692.
693.
694.
695.
696.
697.
698.
699.
700.
701.
702.
703.
704.
705.
706.
707.
708.
709.
710.
711.
712.
713.
714.
715.
716.
717.
718.
719.
720.
721.
722.
723.
724.
725.
726.
727.
728.
729.
730.
731.
732.
733.
734.
735.
736.
737.
738.
739.
740.
741.
742.
743.
744.
745.
746.
747.
748. | /*
* AMX Mod X script.
* Auto restart Knives by PEREF
* Skrypt powstał na bazie skryptu Auto-Restart by VikuS
* Działa tylko pod AMXX
*
* amx_auto_rr_knives -- 1-ON 0-OFF
*
* CVAR: auto_rr_time <time> default 45
*
*/
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define SETHUDMSG set_hudmessage(000, 100, 255, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Niebieski
#define SETHUDMSG1 set_hudmessage(000, 205, 000, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Zielony
#define SETHUDMSG2 set_hudmessage(255, 255, 000, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Żołty
#define SETHUDMSG3 set_hudmessage(000, 255, 255, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Aqa
#define SETHUDMSG4 set_hudmessage(255, 048, 048, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Czerwony
#define SETHUDMSG5 set_hudmessage(255, 127, 000, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Pomarańczowy
#define SETHUDMSG6 set_hudmessage(238, 018, 137, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Rożowy
#define SETHUDMSG7 set_hudmessage(139, 069, 019, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Brązowy
#define SETHUDMSG8 set_hudmessage(155, 048, 255, 0.75, 0.70, 2, 0.02, 1.0, 0.01, 0.1, 1); // Fioletowy
#define SETHUDMSG9 set_hudmessage(250, 100, 100, -1.0, 0.25, 1, 0.02, 1.0, 0.01, 0.1, 1); // (THREE TWO ONE)
#define SETHUDMSG10 set_hudmessage(250, 075, 075, -1.0, 0.25, 1, 0.02, 1.0, 0.01, 0.1, 1); // (THREE TWO ONE)
#define LEVEL_LEVEL ADMIN_CFG
new bool:AutoRR = true
new const muzyczka1[] = {"sound/misc/iab01.mp3"}
new const muzyczka2[] = {"sound/misc/iab07.mp3"}
new const muzyczka3[] = {"sound/misc/iab08.mp3"}
new const muzyczka4[] = {"sound/misc/iab09.mp3"}
new const muzyczka5[] = {"sound/misc/iab06.mp3"}
public plugin_init()
{
register_plugin("Auto-Restart-Knives","0.2","PEREF")
register_dictionary("auto_restart_knives.txt")
register_concmd("amx_auto_rr_knives","auto_rr",LEVEL_LEVEL," - 1 : ON | 0 : OFF")
register_cvar("auto_rr_time","65")
register_event("TextMsg","restart_time","a","2&#Game_C")
register_cvar("restart_bron","weapon_deagle")
return PLUGIN_CONTINUE
}
public auto_rr(id)
{
if (!(get_user_flags(id)&LEVEL_LEVEL)) {
client_print(id, print_console, "[AMXX] %L", LANG_PLAYER, "NO_ACCESS")
return PLUGIN_HANDLED
}
new arg [2]
read_argv(1,arg,1)
if(equal(arg, "1"))
{
AutoRR = true
client_print(id,print_console,"[AMXX] %L", LANG_PLAYER, "ENABLED")
}
else if(equal(arg, "0"))
{
AutoRR = false
client_print(id,print_console,"[AMXX] %L", LANG_PLAYER, "DISABLED")
}
else if(!equal(arg, "1") || equal(!arg, "0"))
{
client_print(id,print_console,"amx_auto_rr_knives 1 = On | 0 = Off");
}
return PLUGIN_HANDLED
}
public ammo()
{
new weapon[192]
get_cvar_string("restart_bron", weapon, 191)
for(new i = 1; i <= get_playersnum(); i++)
{
give_item(i, weapon)
engclient_cmd(i, weapon)
}
}
public muzyczka()
{
new rand = random_num(0,4)
switch(rand)
{
case 0: client_cmd(0, "mp3 play %s", muzyczka2)
case 1: client_cmd(0, "mp3 play %s", muzyczka1)
case 2: client_cmd(0, "mp3 play %s", muzyczka3)
case 3: client_cmd(0, "mp3 play %s", muzyczka5)
case 4: client_cmd(0, "mp3 play %s", muzyczka4)
}
}
public restart_time()
{
if (AutoRR==true)
{
new restart_time=get_cvar_num("auto_rr_time")
set_task(4.0, "ammo", 123, _, _, "b")
pause("ac","M_Antirusher_2.4.amxx")
SETHUDMSG
show_hudmessage(0, "%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",restart_time)
set_task(float(restart_time),"restart_map",0)
set_task(float(restart_time)-1,"restart_1s",0)
set_task(float(restart_time)-2,"restart_2s",0)
set_task(float(restart_time)-3,"restart_3s",0)
set_task(float(restart_time)-4,"restart_4s",0)
set_task(float(restart_time)-5,"restart_5s",0)
if (restart_time > 6)
{
set_task(float(restart_time)-6,"restart_6s",0)
}
if (restart_time > 7)
{
set_task(float(restart_time)-7,"restart_7s",0)
}
if (restart_time > 8)
{
set_task(float(restart_time)-8,"restart_8s",0)
}
if (restart_time > 9)
{
set_task(float(restart_time)-9,"restart_9s",0)
}
if (restart_time > 10)
{
set_task(float(restart_time)-10,"restart_10s",0)
}
if (restart_time > 11)
{
set_task(float(restart_time)-11,"restart_11s",0)
}
if (restart_time > 12)
{
set_task(float(restart_time)-12,"restart_12s",0)
}
if (restart_time > 13)
{
set_task(float(restart_time)-13,"restart_13s",0)
}
if (restart_time > 14)
{
set_task(float(restart_time)-14,"restart_14s",0)
}
if (restart_time > 15)
{
set_task(float(restart_time)-15,"restart_15s",0)
}
if (restart_time > 16)
{
set_task(float(restart_time)-16,"restart_16s",0)
}
if (restart_time > 17)
{
set_task(float(restart_time)-17,"restart_17s",0)
}
if (restart_time > 18)
{
set_task(float(restart_time)-18,"restart_18s",0)
}
if (restart_time > 19)
{
set_task(float(restart_time)-19,"restart_19s",0)
}
if (restart_time > 20)
{
set_task(float(restart_time)-20,"restart_20s",0)
}
if (restart_time > 21)
{
set_task(float(restart_time)-21,"restart_21s",0)
}
if (restart_time > 22)
{
set_task(float(restart_time)-22,"restart_22s",0)
}
if (restart_time > 23)
{
set_task(float(restart_time)-23,"restart_23s",0)
}
if (restart_time > 24)
{
set_task(float(restart_time)-24,"restart_24s",0)
}
if (restart_time > 25)
{
set_task(float(restart_time)-25,"restart_25s",0)
}
if (restart_time > 26)
{
set_task(float(restart_time)-26,"restart_26s",0)
}
if (restart_time > 27)
{
set_task(float(restart_time)-27,"restart_27s",0)
}
if (restart_time > 28)
{
set_task(float(restart_time)-28,"restart_28s",0)
}
if (restart_time > 29)
{
set_task(float(restart_time)-29,"restart_29s",0)
}
if (restart_time > 30)
{
set_task(float(restart_time)-30,"restart_30s",0)
}
if (restart_time > 31)
{
set_task(float(restart_time)-31,"restart_31s",0)
}
if (restart_time > 32)
{
set_task(float(restart_time)-32,"restart_32s",0)
}
if (restart_time > 33)
{
set_task(float(restart_time)-33,"restart_33s",0)
}
if (restart_time > 34)
{
set_task(float(restart_time)-34,"restart_34s",0)
}
if (restart_time > 35)
{
set_task(float(restart_time)-35,"restart_35s",0)
}
if (restart_time > 36)
{
set_task(float(restart_time)-36,"restart_36s",0)
}
if (restart_time > 37)
{
set_task(float(restart_time)-37,"restart_37s",0)
}
if (restart_time > 38)
{
set_task(float(restart_time)-38,"restart_38s",0)
}
if (restart_time > 39)
{
set_task(float(restart_time)-39,"restart_39s",0)
}
if (restart_time > 40)
{
set_task(float(restart_time)-40,"restart_40s",0)
}
if (restart_time > 41)
{
set_task(float(restart_time)-41,"restart_41s",0)
}
if (restart_time > 42)
{
set_task(float(restart_time)-42,"restart_42s",0)
}
if (restart_time > 43)
{
set_task(float(restart_time)-43,"restart_43s",0)
}
if (restart_time > 44)
{
set_task(float(restart_time)-44,"restart_44s",0)
}
if (restart_time > 45)
{
set_task(float(restart_time)-45,"restart_45s",0)
}
if (restart_time > 46)
{
set_task(float(restart_time)-46,"restart_46s",0)
}
if (restart_time > 47)
{
set_task(float(restart_time)-47,"restart_47s",0)
}
if (restart_time > 48)
{
set_task(float(restart_time)-48,"restart_48s",0)
}
if (restart_time > 49)
{
set_task(float(restart_time)-49,"restart_49s",0)
}
if (restart_time > 50)
{
set_task(float(restart_time)-50,"restart_50s",0)
}
if (restart_time > 51)
{
set_task(float(restart_time)-51,"restart_51s",0)
}
if (restart_time > 52)
{
set_task(float(restart_time)-52,"restart_52s",0)
}
if (restart_time > 53)
{
set_task(float(restart_time)-53,"restart_53s",0)
}
if (restart_time > 54)
{
set_task(float(restart_time)-54,"restart_54s",0)
}
if (restart_time > 55)
{
set_task(float(restart_time)-55,"restart_55s",0)
}
if (restart_time > 56)
{
set_task(float(restart_time)-56,"restart_56s",0)
}
if (restart_time > 57)
{
set_task(float(restart_time)-57,"restart_57s",0)
}
if (restart_time > 58)
{
set_task(float(restart_time)-58,"restart_58s",0)
}
if (restart_time > 59)
{
set_task(float(restart_time)-59,"restart_59s",0)
}
if (restart_time > 60)
{
set_task(float(restart_time)-60,"restart_60s",0)
}
if (restart_time > 61)
{
set_task(float(restart_time)-61,"restart_61s",0)
}
if (restart_time > 62)
{
set_task(float(restart_time)-62,"restart_62s",0)
}
if (restart_time > 63)
{
set_task(float(restart_time)-63,"restart_63s",0)
}
if (restart_time > 64)
{
set_task(float(restart_time)-64,"restart_64s",0)
}
if (restart_time > 65)
{
set_task(float(restart_time)-65,"restart_65s",0)
}
}
}
public restart_65s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",65)
}
public restart_64s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",64)
}
public restart_63s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",63)
}
public restart_62s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",62)
}
public restart_61s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",61)
}
public restart_60s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",60)
}
public restart_59s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",59)
}
public restart_58s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",58)
}
public restart_57s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",57)
}
public restart_56s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",56)
}
public restart_55s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",55)
muzyczka()
}
public restart_54s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",54)
}
public restart_53s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",53)
}
public restart_52s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",52)
}
public restart_51s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",51)
}
public restart_50s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",50)
}
public restart_49s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",49)
}
public restart_48s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",48)
}
public restart_47s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",47)
}
public restart_46s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",46)
}
public restart_45s()
{
SETHUDMSG1
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",45)
}
public restart_44s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",44)
}
public restart_43s()
{
SETHUDMSG3
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",43)
}
public restart_42s()
{
SETHUDMSG4
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",42)
}
public restart_41s()
{
SETHUDMSG5
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",41)
}
public restart_40s()
{
SETHUDMSG6
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",40)
}
public restart_39s()
{
SETHUDMSG7
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",39)
}
public restart_38s()
{
SETHUDMSG8
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",38)
}
public restart_37s()
{
SETHUDMSG
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",37)
}
public restart_36s()
{
SETHUDMSG1
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",36)
}
public restart_35s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",35)
}
public restart_34s()
{
SETHUDMSG3
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",34)
}
public restart_33s()
{
SETHUDMSG4
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",33)
}
public restart_32s()
{
SETHUDMSG5
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",32)
}
public restart_31s()
{
SETHUDMSG6
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",31)
}
public restart_30s()
{
SETHUDMSG7
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",30)
}
public restart_29s()
{
SETHUDMSG8
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",29)
}
public restart_28s()
{
SETHUDMSG
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",28)
}
public restart_27s()
{
SETHUDMSG1
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",27)
}
public restart_26s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",26)
}
public restart_25s()
{
SETHUDMSG3
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",25)
}
public restart_24s()
{
SETHUDMSG4
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",24)
}
public restart_23s()
{
SETHUDMSG5
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",23)
}
public restart_22s()
{
SETHUDMSG6
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",22)
}
public restart_21s()
{
SETHUDMSG7
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",21)
}
public restart_20s()
{
SETHUDMSG8
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",20)
}
public restart_19s()
{
SETHUDMSG
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",19)
}
public restart_18s()
{
SETHUDMSG1
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",18)
}
public restart_17s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",17)
}
public restart_16s()
{
SETHUDMSG3
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",16)
}
public restart_15s()
{
SETHUDMSG4
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",15)
}
public restart_14s()
{
SETHUDMSG5
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",14)
}
public restart_13s()
{
SETHUDMSG6
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",13)
}
public restart_12s()
{
SETHUDMSG7
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",12)
}
public restart_11s()
{
SETHUDMSG8
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",11)
}
public restart_10s()
{
SETHUDMSG
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",10)
}
public restart_9s()
{
SETHUDMSG1
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",9)
}
public restart_8s()
{
SETHUDMSG2
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",8)
}
public restart_7s()
{
SETHUDMSG3
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",7)
}
public restart_6s()
{
SETHUDMSG4
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",6)
}
public restart_5s()
{
SETHUDMSG5
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",5)
client_cmd(0,"")
}
public restart_4s()
{
SETHUDMSG6
show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",4)
client_cmd(0,"")
}
public restart_3s()
{
SETHUDMSG9
SETHUDMSG10
show_hudmessage(0,"%L", LANG_PLAYER, "THREE",3)
client_cmd(0,"spk misc/three.wav")
}
public restart_2s()
{
SETHUDMSG9
SETHUDMSG10
show_hudmessage(0,"%L", LANG_PLAYER, "TWO",2)
client_cmd(0,"spk misc/two.wav")
}
public restart_1s()
{
SETHUDMSG9
SETHUDMSG10
show_hudmessage(0,"%L", LANG_PLAYER, "ONE",1)
client_cmd(0,"spk misc/one.wav")
}
public restart_map()
{
if (AutoRR==true)
{
set_cvar_float("sv_restart",1.0)
unpause("ac","M_Antirusher_2.4.amxx")
set_task(2.0,"hudmess_show",0)
SETHUDMSG9
SETHUDMSG10
show_hudmessage(0, "%L", LANG_PLAYER, "AUTOMATIC")
client_cmd(0,"spk misc/restart.wav")
}
}
public hudmess_show()
{
set_hudmessage(000, 100, 255, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
show_hudmessage(0, "%L", LANG_PLAYER, "NICE_GAME")
client_cmd(0,"say /drop")
server_cmd("amx_pausecfg pause respawn.amxx")
server_cmd("amx_pausecfg pause rr_blokada.amxx")
remove_task(123)
}
public plugin_precache()
{
precache_generic(muzyczka1)
precache_generic(muzyczka2)
precache_generic(muzyczka3)
precache_generic(muzyczka4)
precache_generic(muzyczka5)
precache_sound( "misc/one.wav")
precache_sound( "misc/two.wav")
precache_sound( "misc/three.wav")
precache_sound( "misc/restart.wav")
return PLUGIN_CONTINUE
}
|