Raised This Month: $ Target: $400
 0% 

Test plugin and Change HUD message .


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dr hicham
Senior Member
Join Date: Sep 2015
Location: Morocco
Old 09-18-2015 , 14:37   Re: Test plugin and Change HUD message .
Reply With Quote #1

Try This Plugin Is The Best
Working 100%

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "[ZP] Countdown"
#define VERSION "1.0"
#define AUTHOR "Hicham"

new countdown
new time_s

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("HLTV""event_round_start""a""1=0""2=0")
}

public 
plugin_precache()
{
    
precache_sound"fvox/ten.wav" )
    
precache_sound"fvox/nine.wav" )
    
precache_sound"fvox/eight.wav" )
    
precache_sound"fvox/seven.wav" )
    
precache_sound"fvox/six.wav" )
    
precache_sound"fvox/five.wav" )
    
precache_sound"fvox/four.wav" )
    
precache_sound"fvox/three.wav" )
    
precache_sound"fvox/two.wav" )
    
precache_sound"fvox/one.wav" )
}

public 
event_round_start()
{
    
set_task(4.0"zombie_countdown")
    
time_s 10
    countdown 
9
}

public 
zombie_countdown()
{    
    new 
speak10 ][] = { "fvox/one.wav""fvox/two.wav""fvox/three.wav""fvox/four.wav""fvox/five.wav""fvox/six.wav""fvox/seven.wav""fvox/eight.wav""fvox/nine.wav""fvox/ten.wav" }

    
emit_sound0CHAN_VOICEspeakcountdown ], 1.0ATTN_NORM0PITCH_NORM )
    
countdown--
        
    
set_hudmessage(17900, -1.00.2820.021.00.010.110); 
    
show_hudmessage(0"Starting Mode %i"time_s); 
    --
time_s;
        
    if(
time_s >= 1)
    {
        
set_task(1.0"zombie_countdown")
    }

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه

Last edited by dr hicham; 09-19-2015 at 06:26.
dr hicham 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 22:18.


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