Raised This Month: $ Target: $400
 0% 

Solved Limit respawn zombie plague


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 10-01-2022 , 16:18   Re: Limit respawn zombie plague
Reply With Quote #9

Quote:
Originally Posted by JUSTINR View Post
Someone ?
PHP Code:
#include <amxmodx>
#include <cstrike> // reliable cs_get_user_team instead of buggy get_user_team
#include <zombie_plague_advance>
#define PLUGIN "zpa respawn limit"
#define AUTHOR "deprale"
#define VERSION "1.0"

new cvar_RespawnLimit
new SpawnCountMAX_PLAYERS ]


public 
plugin_init( )
{
    
register_pluginPLUGINVERSION AUTHOR );

    
cvar_RespawnLimit register_cvar"zp_spawn_limit""3"FCVAR_PROTECTED )
}


public 
client_deathkillervictim )
{
    if( 
SpawnCountvictim ] == get_pcvar_numcvar_RespawnLimit ) )
        return 
PLUGIN_HANDLED
    

    zp_respawn_user
victimcs_get_user_teamvictim ) == CS_TEAM_CT ZP_TEAM_HUMAN ZP_TEAM_ZOMBIE )
    
SpawnCountvictim ]++
    return 
PLUGIN_CONTINUE
}

public 
client_connectedid )
{
    
SpawnCountid ] = 0
}

public 
client_disconnectedid )
{
    
SpawnCountid ] = 0

try this
__________________

Last edited by deprale; 10-01-2022 at 16:18.
deprale 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 15:42.


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