Raised This Month: $ Target: $400
 0% 

[....]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-27-2011 , 02:10  
Reply With Quote #1

Do you mean like this?
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
 
public plugin_init()
{
    
register_plugin("Kill CT Transfer T""1.0""eRdeneR")
    
RegisterHam(Ham_Killed"player""Player_Killed")
}
 
public 
Player_Killed(victimkillershouldgib)
{
    if(
cs_get_user_team(victim) == CS_TEAM_CT)
    {
        
cs_set_user_team(victimCS_TEAM_T)
        
ExecuteHamB(Ham_CS_RoundRespawnvictim)
    }  

hornet is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-27-2011 , 06:55   Re: [Edit] Player Transfer CT ---> T
Reply With Quote #2

You might need to get the player's origin in Ham_Killed (pre hook) then change their team in Ham_Killed (post hook) or DeathMsg then respawn them, then set their origin to the origin that you saved already.
__________________
fysiks 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 00:48.


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