Thread: [Subplugin Submission] [ZP] CSO Countdown 1.0 (Fixed)
View Single Post
Author Message
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-06-2010 , 07:32   [ZP] CSO Countdown 1.0 (Fixed)
Reply With Quote #1

[ZP] CSO Countdown (FIXED COMPLETELY)

Description:
Its a 2nd Remix of the Countdown Plugin, while I was playing with my version it was great,
the gameplay was just like CSO ZM3 so i posted this so every one can use it.

Make Sure Your Server's "zp_delay" is "20":
zp_delay 20

Improvements:
Added Starting Sound
20 delay until Infection
custom Sounds DOWNLOAD BELOW
10 seconds before chanting 10 - 1
client print center used instead of HUD message. (to Make it CSO Style)
Infect Notice
ML
Optimized

sincerely,
jc980

Updates:
Fixed the last sound file "one.wav" that was not emitting.
Fixed the Delayed Centered message.
Fixed Runtime Error on line 57.
Fixed The PLUGIN Completely

SMA: NEW FIXED VERSION
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define VERSION "1.0"

new time_s
new const g_zm3_roundstart[][] = {"sound/cso/zombi_start.mp3"}
new const 
g_zm3_infectchant[][] = {"cso/zombi_coming_1_cn","cso/zombi_coming_2_cn"}
new const 
g_zm3_countchant[][] = { "cso/one.wav""cso/two.wav""cso/three.wav""cso/four.wav""cso/five.wav""cso/six.wav""cso/seven.wav""cso/eight.wav""cso/nine.wav""cso/ten.wav" }

public 
plugin_init() 
{
    
register_plugin("[CSO ZM3] - Zombie Countdown"VERSION"jc980, JeproKs Productions Team")
    
register_event("HLTV""event_round_start""a""1=0""2=0")
}

public 
plugin_precache()
{
    
register_dictionary("csozm3_countdown.txt")
    
    new 
iStartiChantiCount
    
    
for ( iStart 0iStart sizeof g_zm3_roundstartiStart++ )
    for ( 
iChant 0iChant sizeof g_zm3_infectchantiChant++ )
    for ( 
iCount 0iCount sizeof g_zm3_countchantiCount++ )
    
    
precache_sound g_zm3_roundstart iStart ] ) 
    
precache_sound g_zm3_infectchant iChant ] ) 
    
precache_sound g_zm3_countchant iCount ] ) 
}

public 
event_round_start()
{
    
csozm3_countdown()
    
time_s 20
}

public 
csozm3_countdown()
{       
    
client_cmd(0,"mp3 play %s",  g_zm3_roundstart)
    
client_print0print_center"%L""COUNTDOWN_NOTICE",time_s); 
    --
time_s;
    
    if(
time_s >= 1)
    {
        
set_task(1.0"csozm3_countdown")
    }
    
    if(
time_s == 10)
    {
        
emit_sound0CHAN_VOICEg_zm3_countchant[time_s 1], 1.0ATTN_NORM0PITCH_NORM )
    }
}  

public 
zp_user_infected_postidinfectornemesis )
{
    if ( !
infector || nemesis )
        return;
    
    if(
zp_get_user_first_zombie(id))
    {
        
client_print(0,print_center,"%L""FIRST_NOTICE",id)
        
emit_sound0CHAN_VOICEg_zm3_infectchant [random_num(1,2)], 1.0ATTN_NORM0PITCH_NORM )
    }
    else
    {
        
client_print(0,print_center,"%L""INFECTED_NOTICE",id,infector)
        
emit_sound0CHAN_VOICEg_zm3_infectchant [random_num(1,2)], 1.0ATTN_NORM0PITCH_NORM )
    }

Resources Download the Sounds please!
Attached Files
File Type: sma Get Plugin or Get Source (CSO_ZM3_countdown.sma - 3411 views - 2.2 KB)
File Type: txt CSO_ZM3_Countdown.txt (149 Bytes, 2168 views)
__________________

Last edited by jc980; 11-02-2010 at 12:58.
jc980 is offline