Raised This Month: $51 Target: $400
 12% 

[Help] Plugin CountDown Biohazard


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Viper
New Member
Join Date: Sep 2016
Old 09-07-2016 , 09:12   [Help] Plugin CountDown Biohazard
Reply With Quote #1

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 }
*/
The Viper is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-07-2016 , 09:32   Re: [Help] Plugin CountDown Biohazard
Reply With Quote #2

https://forums.alliedmods.net/forumdisplay.php?f=11
__________________
retired
shavit is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 09-07-2016 , 19:27   Re: [Help] Plugin CountDown Biohazard
Reply With Quote #3

Moved to appropriate section
sneaK is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode