Raised This Month: $51 Target: $400
 12% 

[Biohazard mod] - HELP! Respawn zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ExEnSpooT
New Member
Join Date: Jun 2011
Old 11-13-2011 , 09:30   [Biohazard mod] - HELP! Respawn zombie
Reply With Quote #1

Help me to find Respawn Zombie for Biohazard
P.S Forgive for bad English
ExEnSpooT is offline
Send a message via Skype™ to ExEnSpooT
ExEnSpooT
New Member
Join Date: Jun 2011
Old 11-13-2011 , 23:30   Re: [Biohazard mod] - HELP! Respawn zombie
Reply With Quote #2

Here at other forum to me have helped.
Here a code:

Quote:
#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
#include < biohazard >

public plugin_init( )
{
register_plugin( "zspawn", "12.1", "tuty" );

register_clcmd( "say /zspawn", "CommandZSpawn" );
}

public client_connect(id)
{
if(!task_exists(id)) set_task(3.0,"CommandZSpawn",id,_,_,"b");
}


public CommandZSpawn( id )
{
if( is_user_connected( id ) && !is_user_alive( id ) && InTeam( id ) )
{
cs_set_user_team ( id , CS_TEAM_T )
ExecuteHamB( Ham_CS_RoundRespawn, id );
infect_user( id, id );
}
}

stock InTeam(id)
{
switch(cs_get_user_team(id))
{
case CS_TEAM_T:
{
return 1
}
case CS_TEAM_CT:
{
return 1
}
}
return 0
}

Last edited by ExEnSpooT; 11-13-2011 at 23:30.
ExEnSpooT is offline
Send a message via Skype™ to ExEnSpooT
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 11-14-2011 , 08:01   Re: [Biohazard mod] - HELP! Respawn zombie
Reply With Quote #3

Wrap the code with a PHP tag instead of a "Quote".

And don't bump.



And Lol.
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 03-05-2013 , 15:24   Re: [Biohazard mod] - HELP! Respawn zombie
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <biohazard>
#include <hamsandwich>

#define TASK_RESPAWN 123543

new cvar_respawncvar_timerespawn

public plugin_init()
{
    
register_plugin("[Bio] Addon: Zombie Spawn""1.0""Dias")
    
register_event("DeathMsg""event_death""a")
    
register_event("HLTV""event_newround""a""1=0""2=0")
    
    
cvar_respawn register_cvar("bh_zombie_respawn""1")
    
cvar_timerespawn register_cvar("bh_time_respawn""10.0")
}

public 
event_death()
{
    new 
victim read_data(2)
    
    if(
is_user_zombie(victim) && get_pcvar_num(cvar_respawn))
    {
        
set_task(get_pcvar_float(cvar_timerespawn), "do_respawn"victim+TASK_RESPAWN)
        
        
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("BarTime"), _victim)
        
write_short(get_pcvar_num(cvar_timerespawn))
        
message_end()
        
        
client_print(victimprint_center"You will be respawned after: %i seconds"get_pcvar_num(cvar_timerespawn))
    }
}

public 
event_newround(id)
{
    if(
task_exists(id+TASK_RESPAWN)) 
    {
        
remove_task(id+TASK_RESPAWN)
        
        
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("BarTime"), _id)
        
write_short(0)
        
message_end()
    }
}

public 
do_respawn(taskid)
{
    static 
id
    id 
taskid TASK_RESPAWN
    
    
if(is_user_zombie(id))
    {
        
ExecuteHam(Ham_CS_RoundRespawnid)
        
client_print(idprint_center"You have been respawned")
    }

Erdener is offline
Indigozm
Junior Member
Join Date: Nov 2017
Old 06-01-2018 , 14:35   Re: [Biohazard mod] - HELP! Respawn zombie
Reply With Quote #5

Quote:
Originally Posted by ExEnSpooT View Post
Here at other forum to me have helped.
Here a code:
This plugin with a bug.
Can someone fix it so that the zombie revives once per round?
Such a bug: that zombies after death are reborn for zombies, but damage from bullets and from grenades does not work ..
__________________
Indigozm is offline
Send a message via ICQ to Indigozm Send a message via Skype™ to Indigozm
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