Raised This Month: $ Target: $400
 0% 

[REQ] Respawn if Terrorist


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thebro
Senior Member
Join Date: Jan 2011
Old 05-28-2012 , 20:46   [REQ] Respawn if Terrorist
Reply With Quote #1

is there a plugin that will respawn you only if you're Terrorist?
For example, you die, you spawn right away? Instant respawn pretty much
but for the T team.
thebro is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 05-28-2012 , 21:24   Re: [REQ] Respawn if Terrorist
Reply With Quote #2

Untested:

Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> #include <csx> public client_death(killer, victim) {     if(is_user_connected(victim) && cs_get_user_team(victim) == CS_TEAM_T) {         if(is_user_alive(victim)) {             ExecuteHam(Ham_CS_RoundRespawn, victim);         }     } }
kramesa is offline
thebro
Senior Member
Join Date: Jan 2011
Old 05-28-2012 , 22:15   Re: [REQ] Respawn if Terrorist
Reply With Quote #3

doesn't work
this will work even if they are killed by self nade too, basically suicide right?

Last edited by thebro; 05-28-2012 at 22:15.
thebro is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-28-2012 , 22:20   Re: [REQ] Respawn if Terrorist
Reply With Quote #4

Quote:
Originally Posted by kramesa View Post
Untested:

Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> #include <csx> public client_death(killer, victim) {     if(is_user_connected(victim) && cs_get_user_team(victim) == CS_TEAM_T) {         if(!is_user_alive(victim)) {             ExecuteHam(Ham_CS_RoundRespawn, victim);         }     } }
Updated and untested
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-29-2012 , 01:11   Re: [REQ] Respawn if Terrorist
Reply With Quote #5

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

#define VERSION "0.0.1"
#define PLUGIN ""

#define        m_iTeam                                            114
#define        m_iMenu                                            205

#define TEAM_T    1
#define MENU_CHOOSE_APPEARANCE    3

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
RegisterHam(Ham_Killed"player""CBasePlayer_Killed_Post"true)
}

public 
CBasePlayer_Killed_Postid )
{
    if( 
get_pdata_int(idm_iTeam) == TEAM_T && get_pdata_int(idm_iMenu) != MENU_CHOOSE_APPEARANCE )
    {
        
set_pev(idpev_deadflagDEAD_RESPAWNABLE)
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 05-29-2012 , 11:25   Re: [REQ] Respawn if Terrorist
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
Updated and untested
Wow, thanks to fix it. I forgot the '!'.
kramesa 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 21:45.


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