AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [....] (https://forums.alliedmods.net/showthread.php?t=163031)

Erdener 07-26-2011 01:57

[....]
 
[...]

fysiks 07-26-2011 06:11

Re: [Edit] Player Transfer CT ---> T
 
Huh? You need to describe what you want. None of that makes sense.

Erdener 07-26-2011 06:51

Re: [Edit] Player Transfer CT ---> T
 
So, Any T kill CT , CT in the dead pass the team T ( as the "zombie mode" )

fysiks 07-26-2011 16:04

Re: [Edit] Player Transfer CT ---> T
 
Still, nothing makes sense in this thread.

Erdener 07-27-2011 01:34

Re: [Edit] Player Transfer CT ---> T
 
http://www.amxmodx.org/funcwiki.php?go=func&id=162
http://www.amxmodx.org/funcwiki.php?go=func&id=118
http://www.amxmodx.org/funcwiki.php?...team&go=search


and "ham_" respawn functions should.

hornet 07-27-2011 02:10

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)
    }  



fysiks 07-27-2011 06:55

Re: [Edit] Player Transfer CT ---> T
 
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.


All times are GMT -4. The time now is 00:48.

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