Hello..please help me with this plugin. Please , if you can :
1. to make a TIME_START after the 10 sounds to be a TIME_START hear that I will put it [ gender biohazard_detected.wav ]
2. before beginning the countdown to be displayed in the HUD " The virus is out of control , "
That please help me !!
#include <amxmodx>
#include <amxmisc>
#include <biohazard>
#define PLUGIN "[Bio] Countdown"
#define VERSION "1.0"
#define AUTHOR "Mr.Apple"
new countdown
new time_s
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}
public plugin_precache()
{
precache_sound( "fvox/10.wav" )
precache_sound( "fvox/9.wav" )
precache_sound( "fvox/8.wav" )
precache_sound( "fvox/7.wav" )
precache_sound( "fvox/6.wav" )
precache_sound( "fvox/5.wav" )
precache_sound( "fvox/4.wav" )
precache_sound( "fvox/3.wav" )
precache_sound( "fvox/2.wav" )
precache_sound( "fvox/1.wav" )
}
public event_round_start()
{
set_task(4.0, "zombie_countdown")
time_s = 10
countdown = 9
}
public zombie_countdown()
{
new speak[ 10 ][] = { "fvox/1.wav", "fvox/2.wav", "fvox/3.wav", "fvox/4.wav", "fvox/5.wav", "fvox/6.wav", "fvox/7.wav", "fvox/8.wav", "fvox/9.wav", "fvox/10.wav" }
emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )
countdown--
set_hudmessage(179, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10);
show_hudmessage(0, " Virusul se v-a raspandi in %i secunde ", time_s);
--time_s;
if(time_s >= 1)
{
set_task(1.0, "zombie_countdown")
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/
|