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

Help / Support Humans killed by assassin in assassin mode respawn as zombie in this round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Casperski
Member
Join Date: Aug 2019
Location: DPR Ukraine
Old 08-03-2019 , 09:56   Humans killed by assassin in assassin mode respawn as zombie in this round
Reply With Quote #1

Help me pls. Idk how disable respawn humans in assassin mode and other modes. I can put link for download my server pack but it's undone, so I want some help.
Casperski is offline
colossus
Member
Join Date: Sep 2013
Old 08-03-2019 , 16:42   Re: Humans killed by assassin in assassin mode respawn as zombie in this round
Reply With Quote #2

Show the zp mod code Please
colossus is offline
Old 08-04-2019, 00:49
Casperski
This message has been deleted by Casperski.
Casperski
Member
Join Date: Aug 2019
Location: DPR Ukraine
Old 08-04-2019 , 02:40   Re: Humans killed by assassin in assassin mode respawn as zombie in this round
Reply With Quote #3

Quote:
Originally Posted by colossus View Post
Show the zp mod code Please
I can't copy full code cuz site give me error upload, so I upload .sma of mod.
Idk wtf with that assassin but I dont like it. It's crash assassin mode and impossible win for humans.
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague_special_new.sma - 155 views - 542.0 KB)
File Type: sma Get Plugin or Get Source (zombie_plague_advance_v1-6-1.sma - 177 views - 418.1 KB)

Last edited by Casperski; 08-04-2019 at 03:03.
Casperski is offline
Casperski
Member
Join Date: Aug 2019
Location: DPR Ukraine
Old 08-05-2019 , 10:04   Re: Humans killed by assassin in assassin mode respawn as zombie in this round
Reply With Quote #4

Lol. I'm so stupid and not see is enable "respawn.amxx" plugin or not. Problem was in this. So, can anyone make this plugin for zp special 4.0? Add there sniper, assassin, predator, bombardier, dragon.
PHP Code:
#include < amxmodx >

#include < zombieplague >
#include < hamsandwich >
#include < cstrike >
 
#define PLUGIN  "[ZP]: Custom respawn"
#define VERSION "1.0"
#define AUTHOR  "Weltgericht"

enum (+= 100)
{
    
TASK_SPAWN
}

enum cvar
{
    
spawndelay,
    
amount,
    
nemesis,
    
survivor,
    
plague,
    
swarm
}

new 
pcvar[cvar]
new 
current[33] = 
new boolended false

#define ID_SPAWN (taskid - TASK_SPAWN)

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
events()
    
cvars()
}

public 
events()
{
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")
}

public 
cvars()
{
    
pcvar[spawndelay] = register_cvar("zp_spawn_delay""5.0")
    
pcvar[amount] = register_cvar("zp_spawn_amount""99")
    
    
pcvar[nemesis] = register_cvar("zp_respawn_in_nemesis""1")
    
pcvar[survivor] = register_cvar("zp_respawn_in_survivor""1")
    
pcvar[plague] = register_cvar("zp_respawn_in_plague""1")
    
pcvar[swarm] = register_cvar("zp_respawn_in_swarm""0")
}

public 
fw_PlayerSpawn_Post(id)
{
    if(!
is_user_alive(id))
        return
        
    
remove_task(id+TASK_SPAWN)
    return
}

public 
fw_PlayerKilled(victimattackershouldgib)
{
    if(
zp_is_nemesis_round() && !get_pcvar_num(pcvar[nemesis]))
        return
        
    if(
zp_is_survivor_round() && !get_pcvar_num(pcvar[survivor]))
        return
    
    if(
zp_is_plague_round() && !get_pcvar_num(pcvar[plague]))
        return

    if(
zp_is_swarm_round() && !get_pcvar_num(pcvar[swarm]))
        return
            

    
set_task(get_pcvar_float(pcvar[spawndelay]), "respawn_player_task"victim+TASK_SPAWN)
    return
}

public 
respawn_player_task(taskid)
{
    if(!
is_user_connected(ID_SPAWN))
    {
        
remove_task(ID_SPAWN+TASK_SPAWN)
        return
    }

    if(
current[ID_SPAWN] >= get_pcvar_num(pcvar[amount]))
    {
        
remove_task(ID_SPAWN+TASK_SPAWN)
        return
    }
        
    if(
ended)
    {
        
remove_task(ID_SPAWN+TASK_SPAWN)
        return
    }

    
    if(
cs_get_user_team(ID_SPAWN) != CS_TEAM_SPECTATOR && cs_get_user_team(ID_SPAWN) != CS_TEAM_UNASSIGNED)
    {
        if(
zp_is_nemesis_round())
        {
            
zp_respawn_user(ID_SPAWNZP_TEAM_HUMAN)
            
current[ID_SPAWN]++
            return
        }
        else if(
zp_is_plague_round())
        {
            
random_spawn(ID_SPAWN)
            return
        }
        else if(
zp_is_swarm_round())
        {
            
random_spawn(ID_SPAWN)
            return
        }
        
        
zp_respawn_user(ID_SPAWNZP_TEAM_ZOMBIE)
        
current[ID_SPAWN]++
    }
    return
}

public 
zp_round_ended(winter)
{
    
ended true
}

public 
zp_round_started()
{
    
ended false

    
new MaxPlayers get_maxplayers()
    
    for (new 
player 1player <= MaxPlayersplayer++)   
    {
        
current[player] = 0
    
}
}

stock random_spawn(id)
{
    switch(
random_num(0,1))
    {
        case 
0:
        {
            
zp_respawn_user(idZP_TEAM_ZOMBIE)
            
current[id]++
        }
        case 
1:
        {
            
zp_respawn_user(idZP_TEAM_HUMAN)
            
current[id]++
        }
    }

Casperski 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 07:07.


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