Raised This Month: $ Target: $400
 0% 

ZP5.0 Countdown help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debrizor
Junior Member
Join Date: Sep 2017
Old 09-04-2017 , 10:29   ZP5.0 Countdown help!
Reply With Quote #1

Hello i need some help for my zombie plague server 5.0.5.

i have downloaded this countdown addon but i dont want the voice "biohazard detected" when someone becomes first zombie..

if someone can help me and change this code that would be really apreciated

heres the code:

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

#define PLUGIN "[ZP] Infection Countdown Remix[Martis]"
#define VERSION "1.3"
#define AUTHOR "Dels"

new countdown_timercvar_countdown_sound;
new 
g_msgsync;
const 
TASK_ID 1603;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);    
    
register_event("HLTV""event_round_start""a""1=0""2=0");
    
register_dictionary("zp_countdown_remix.txt");
    
    
//needed for smooth countdown display
    
g_msgsync CreateHudSyncObj();
    
    
//cvars
    
cvar_countdown_sound register_cvar("countdown_sound""1"); //1 to enable, 0 to disable
}
 
public 
plugin_precache()
{
    
precache_sound("fvox/biohazard_detected.wav");
    
precache_sound("fvox/one.wav");
    
precache_sound("fvox/two.wav");
    
precache_sound("fvox/three.wav");
    
precache_sound("fvox/four.wav");
    
precache_sound("fvox/five.wav");
    
precache_sound("fvox/six.wav");
    
precache_sound("fvox/seven.wav");
    
precache_sound("fvox/eight.wav");
    
precache_sound("fvox/nine.wav");
    
precache_sound("fvox/ten.wav");
    
precache_sound("fvox/eleven.wav");
    
precache_sound("fvox/twelve.wav");
    
precache_sound("fvox/thirteen.wav");
    
precache_sound("fvox/fourteen.wav");
    
precache_sound("fvox/fifteen.wav");
}

public 
event_round_start()
{
    
//bugfix
    
remove_task(TASK_ID);
    
    
countdown_timer get_cvar_num("zp_gamemode_delay") - 3;
    
set_task(5.0"countdown"TASK_ID);
}

public 
countdown()
{    
    new 
speak[16][] = { 
        
"fvox/biohazard_detected.wav",
    
"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",
    
"fvox/eleven.wav",
    
"fvox/twelve.wav",
    
"fvox/thirteen.wav",
    
"fvox/fourteen.wav",
    
"fvox/fifteen.wav"
    
}

    if (
countdown_timer 1)
    { 
        
//emit_sound(0, CHAN_VOICE, speak[countdown_timer-1], 1.0, ATTN_NORM, 0, PITCH_NORM);
        
if (cvar_countdown_sound != 0)
            
client_cmd(0"spk %s"speak[countdown_timer-2]);
            
        
set_hudmessage(17900, -1.00.2820.021.00.010.110);    
        if (
countdown_timer != 1)
            
ShowSyncHudMsg(0g_msgsync"%L"LANG_PLAYER"COUNTDOWN_MSG"countdown_timer-2); //the new way
    
}
    --
countdown_timer;
        
    if(
countdown_timer >= 1)
        
set_task(1.0"countdown"TASK_ID);
    else
        
remove_task(TASK_ID);

Debrizor is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-04-2017 , 11:27   Re: ZP5.0 Countdown help!
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=273814

zpnm_gp_countdown_light.sma from the first link(D7_ZPNM)
Has full zp5 support.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Debrizor
Junior Member
Join Date: Sep 2017
Old 09-04-2017 , 12:00   Re: ZP5.0 Countdown help!
Reply With Quote #3

Quote:
Originally Posted by georgik57 View Post
https://forums.alliedmods.net/showthread.php?t=273814

zpnm_gp_countdown_light.sma from the first link(D7_ZPNM)
Has full zp5 support.
I tried that plugin, but there is no hud saying "infection on X" and only thing i hear is in the end "Warning, biohazard detected" when someone becomes a zombie. there is no countdown from 10-1
Debrizor is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-04-2017 , 12:22   Re: ZP5.0 Countdown help!
Reply With Quote #4

did u comment the other zp includes and uncommented the zp5 include?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Debrizor
Junior Member
Join Date: Sep 2017
Old 09-04-2017 , 12:30   Re: ZP5.0 Countdown help!
Reply With Quote #5

Quote:
Originally Posted by georgik57 View Post
did u comment the other zp includes and uncommented the zp5 include?
Yes, still the same.

PHP Code:
// Plug-in APIs
// Uncomment the zombie plague mod version you want to use and comment the others
#include <zombieplague>
//#include <zombie_plague_advance>
//#include <zombieplaguenightmare>
//#include <zp50_gamemodes> 
Debrizor is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-04-2017 , 12:34   Re: ZP5.0 Countdown help!
Reply With Quote #6

Quote:
Originally Posted by Debrizor View Post
Hello i need some help for my zombie plague server 5.0.5.
Quote:
Originally Posted by Debrizor View Post
Yes, still the same.

PHP Code:
// Plug-in APIs
// Uncomment the zombie plague mod version you want to use and comment the others
#include <zombieplague>
//#include <zombie_plague_advance>
//#include <zombieplaguenightmare>
//#include <zp50_gamemodes> 
How is that correct? You should uncomment zp50 not zombieplague.
Also make sure you have downloaded the lang file too(data/lang/zpnm_countdown.txt).
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Debrizor
Junior Member
Join Date: Sep 2017
Old 09-04-2017 , 12:49   Re: ZP5.0 Countdown help!
Reply With Quote #7

Quote:
Originally Posted by georgik57 View Post
How is that correct? You should uncomment zp50 not zombieplague.
Also make sure you have downloaded the lang file too(data/lang/zpnm_countdown.txt).
I did try that too then it works but hud messege comes up saying ML_NOTFOUND: ZPNM_COUNTDOWN
Somekind of model im missing?
also it has screen fade which im not really a fan of, also has the "warning, biohazard detected" which i dont want

Also i have the zpnm_countdown.txt file.

Last edited by Debrizor; 09-04-2017 at 12:52.
Debrizor is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-04-2017 , 12:54   Re: ZP5.0 Countdown help!
Reply With Quote #8

U don't have the txt file or u have it corrupted if it says ML_NOTFOUND.
Also u can remove both the light effects(cvar zpnm_countdown_effects set to 0) and the biohazard detected sound:
PHP Code:
new const g_szSoModeStart[][] =
{
    
"fvox/biohazard_detected"

->
PHP Code:
new const g_szSoModeStart[][] =
{
    
""

It has a lot of features and all of them are easily customizable.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Debrizor
Junior Member
Join Date: Sep 2017
Old 09-04-2017 , 13:14   Re: ZP5.0 Countdown help!
Reply With Quote #9

Quote:
Originally Posted by georgik57 View Post
U don't have the txt file or u have it corrupted if it says ML_NOTFOUND.
Also u can remove both the light effects(cvar zpnm_countdown_effects set to 0) and the biohazard detected sound:
PHP Code:
new const g_szSoModeStart[][] =
{
    
"fvox/biohazard_detected"

->
PHP Code:
new const g_szSoModeStart[][] =
{
    
""

It has a lot of features and all of them are easily customizable.
Awesome it works! I'm sure i put the countdown.txt file in lang but apparently not ,
One more thing. Can you change the location of the hud? i would like to have it up abit more didn't see any cvars on that? I guess you need to change this?

PHP Code:
}
    
    
set_dhudmessage(random_num(57255), random_num(0255), random_num(0255), -1.00.397521.11.10.00.0)
    
show_dhudmessage(0"%L"LANG_PLAYER"ZPNM_COUNTDOWN"g_iSeconds 1
Debrizor is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-04-2017 , 13:19   Re: ZP5.0 Countdown help!
Reply With Quote #10

Quote:
-1.0, 0.3975
horizontal/vertical positions. -1.0 = center. 0.0 = left/up. 1.0 = right/down.
__________________

Last edited by georgik57; 09-04-2017 at 13:20.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
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 07:58.


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