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

Respawn CT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jawad abatorab
Member
Join Date: Jun 2014
Old 09-05-2014 , 16:21   Respawn CT
Reply With Quote #1

I want plugin for auto respawn ct only and dont respawn terrorist and thnx
jawad abatorab is offline
Send a message via Skype™ to jawad abatorab
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 09-05-2014 , 17:45   Re: Respawn CT
Reply With Quote #2

try
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN      "Auto Respawn CT"
#define AUTHOR       "EaGle"
#define VERSION        "1.0"

new RespawnTime

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Killed"player""Ham_Killed_player");
    
    
RespawnTime  register_cvar("autors_time""2")
}

public 
Ham_Killed_player(id)
{
    if(!
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {
            
set_hudmessage(00255, -1.00.2836.03.0);        
            
show_hudmessage(id"You will respawn in %i seconds."get_pcvar_num(RespawnTime));
            
set_task(get_pcvar_float(RespawnTime), "respawn"id)
    }
}

public 
client_putinserver(id)
{
    
set_task(get_pcvar_float(RespawnTime), "respawn"id)
}

public 
respawn(id)
{
    if(!
is_user_alive(id) && is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_CT)
    
ExecuteHamBHam_CS_RoundRespawnid )
    return 
HAM_IGNORED

__________________

Last edited by Eagle07; 09-05-2014 at 17:47.
Eagle07 is offline
jawad abatorab
Member
Join Date: Jun 2014
Old 09-05-2014 , 18:22   Re: Respawn CT
Reply With Quote #3

worked
jawad abatorab is offline
Send a message via Skype™ to jawad abatorab
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 15:23.


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