Raised This Month: $ Target: $400
 0% 

Zombie Plague 4.3 zombie delay start


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AnimalMonster
Senior Member
Join Date: May 2020
Old 10-07-2020 , 12:12   Re: Zombie Plague 4.3 zombie delay start
Reply With Quote #4

Quote:
Originally Posted by Shadypastbrightfuture View Post
Zp_delay will only increase the warmup period for both humans and Zombies. i am using 1 zp_delay so the infection start at the beginning of round. I want to add something which can freeze the zombies for say 8 more seconds so the humans have some time.

Countdown will just count the time, it has nothing to do with what i am looking for.
Still thanks for the suggestion. Appreciate your help
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

new cvar_freeze

public plugin_init()
{
     
register_plugin("LAlA","LALA","LALA")
     
cvar_freeze register_cvar("zp_freeze_time""8")
}

public 
zp_round_started()
{
      
g_seconds get_pcvar_num(cvar_freeze)
      
set_task(1.0"countdown"0__"b")
}

public 
countdown(id)
{
        if(!
zp_get_user_zombie(id))
        return;

        new 
g_unfreeze -= g_seconds
        
new text[64]
        
        
set_pev(idpev_maxspeed0)

        if(
g_unfreeze 0
        {
                
set_pev(idpev_maxspeed300)
                
remove_task(0)
                return;
        }
        
        
formatex(textcharsmax(text), "Zombie released in %s"g_unfreeze)

        
set_dhudmessage(25500, -1.00.3600.50.8)
    
show_dhudmessage(0text)

Haven't tested but try it.
Also i have doubts about it working/

Last edited by AnimalMonster; 10-07-2020 at 12:13.
AnimalMonster is offline
 



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 13:56.


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