Raised This Month: $ Target: $400
 0% 

[Solved] How to Catch Change Team Event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 01-13-2011 , 09:07   [Solved] How to Catch Change Team Event
Reply With Quote #1

How i can catch the Change Team Event?

i store the Teams in a Variable

And how to catch the Teamchange and not just hook jointeam

i need cs_set_user_team too

Greetings


:My Code:

PHP Code:
public catch_team(id)
{
    if ( 
cs_get_user_team id ) == CS_TEAM_T )
    {
        
PlayerInfo[id][p_team] = 1
    
}
    else if( 
cs_get_user_team id ) == CS_TEAM_CT )
    {
        
PlayerInfo[id][p_team] = 2
    
}
    else if( 
cs_get_user_team id ) == CS_TEAM_SPECTATOR )
    {
        
PlayerInfo[id][p_team] = 3
    
}
    else if( 
cs_get_user_team id ) == CS_TEAM_UNASSIGNED )
    {
        
PlayerInfo[id][p_team] = 4
    
}

__________________

Some People brings Happynes by Coming
Some by Going

Last edited by Stylaa; 01-13-2011 at 11:17.
Stylaa is offline
Send a message via ICQ to Stylaa
 


Thread Tools
Display Modes

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 02:13.


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