Raised This Month: $32 Target: $400
 8% 

Subplugin Submission [ZP] CSO Countdown 1.0 (Fixed)


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 3402 views - 2.2 KB)
File Type: txt CSO_ZM3_Countdown.txt (149 Bytes, 2158 views)
__________________

Last edited by jc980; 11-02-2010 at 12:58.
jc980 is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 05-06-2010 , 07:44   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #2

just rename some things man you suck delet this plugin !
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 05-06-2010 , 07:48   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #3

Don't rip code and post at here ?
__________________
albert123 is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-06-2010 , 07:49   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #4

Quote:
Originally Posted by Russiaboy View Post
just rename some things man you suck delet this plugin !
i did rename BUT I ADDED STUFF!

Quote:
Originally Posted by albert123 View Post
Don't rip code and post at here ?
wha?
__________________
jc980 is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-06-2010 , 08:22   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #5

So you just added support for 20 seconds ...
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
kenwelo
Member
Join Date: May 2008
Old 05-06-2010 , 08:23   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #6

you can add sound pack ? . from plugin
kenwelo is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-06-2010 , 08:28   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #7

Quote:
Originally Posted by abdul-rehman View Post
So you just added support for 20 seconds ...
well not exactly, theres is a 20 sec delay but in that delay plays a sound or the start of the round after the sound fades away, the ghost will chant 10 - 1 and removed hud message replaced with print center.

Quote:
Originally Posted by kenwelo View Post
you can add sound pack ? . from plugin
Omg here you go Sounds!!!!!
__________________
jc980 is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-06-2010 , 08:31   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #8

Here are a few suggestiions:

1-
PHP Code:
register_event("HLTV""event_round_start""a""1=0""2=0")
register_event "HLTV""e_NewRound""a""1=0""2=0" ); 
Why the hell are you registering the same event twice with a different name...!!!!
just do it like this:
PHP Code:
public event_round_start()
{
   
time_s 20
   countdown 
9
 
   set_task
(0.1"csozm3_countdown")
   
set_task(10.0"csozm3_ghostchant")
 
   
server_cmd("spk %s"gs_CountdownSound)

2- Instead of this :
PHP Code:
emit_sound0CHAN_VOICEspeakcountdown ], 1.0ATTN_NORM0PITCH_NORM 
use this:
PHP Code:
client_cmd(0"spk %s"speak[countdown]) 
3- Instead of using a set_task for executing this:
PHP Code:
public event_round_start()
{
    
set_task(0.1"csozm3_countdown")
   .....

Directly execute the function like this:
PHP Code:
public event_round_start()
{
    
csozm3_countdown()
    ......

4- Add a cvar for whether it should be displayed as print_center or as a hud_message
__________________

My Plugins For ZP

Inactive due to College and Studies

Last edited by abdul-rehman; 05-06-2010 at 08:36.
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-06-2010 , 08:45   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #9

i didn't try the plugin yet but from the description all i have to say is nice job
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-06-2010 , 08:48   Re: [ZP] CSO Countdown (Remix of original Countdown)
Reply With Quote #10

Quote:
Originally Posted by abdul-rehman View Post
Here are a few suggestiions:

1-
PHP Code:
register_event("HLTV""event_round_start""a""1=0""2=0")
register_event "HLTV""e_NewRound""a""1=0""2=0" ); 
Why the hell are you registering the same event twice with a different name...!!!!
just do it like this:
PHP Code:
public event_round_start()
{
   
time_s 20
   countdown 
9
 
   set_task
(0.1"csozm3_countdown")
   
set_task(10.0"csozm3_ghostchant")
 
   
server_cmd("spk %s"gs_CountdownSound)

2- Instead of this :
PHP Code:
emit_sound0CHAN_VOICEspeakcountdown ], 1.0ATTN_NORM0PITCH_NORM 
use this:
PHP Code:
client_cmd(0"spk %s"speak[countdown]) 
3- Instead of using a set_task for executing this:
PHP Code:
public event_round_start()
{
    
set_task(0.1"csozm3_countdown")
   .....

Directly execute the function like this:
PHP Code:
public event_round_start()
{
    
csozm3_countdown()
    ......

4- Add a cvar for whether it should be displayed as print_center or as a hud_message
sorry! dont have to be bossy! and i splitted it because i want the song to play first then chanting!

Quote:
Originally Posted by georgik57 View Post
i didn't try the plugin yet but from the description all i have to say is nice job
thank you!
___________________________________________

ok! ok! ok! ill re write it!
__________________
jc980 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 08:51.


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