Raised This Month: $ Target: $400
 0% 

How do I take the event when the player chose the team and the class?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 06-02-2009 , 11:26   How do I take the event when the player chose the team and the class?
Reply With Quote #1

How do I take the event when the player chose the team and the class?
thanks in advance
__________________
alan_el_more is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-02-2009 , 11:36   Re: How do I take the event when the player chose the team and the class?
Reply With Quote #2

TeamJoin
__________________
xPaw is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-02-2009 , 11:41   Re: How do I take the event when the player chose the team and the class?
Reply With Quote #3

I don't think that will catch class, just team.
__________________
Bugsy is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 06-02-2009 , 11:47   Re: How do I take the event when the player chose the team and the class?
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
TeamJoin
register_logevent("logevent_team_join",3,"1=j oined team")

?
__________________
alan_el_more is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-02-2009 , 11:49   Re: How do I take the event when the player chose the team and the class?
Reply With Quote #5

PHP Code:
register_event"TeamInfo" "fwPlayerJoinedTeam" "a" "2=TERRORIST" "2=CT" );

public 
fwPlayerJoinedTeam()
{
    new 
id read_data);

__________________
Bugsy is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-02-2009 , 12:08   Re: How do I take the event when the player chose the team and the class?
Reply With Quote #6

Quote:
Originally Posted by Bugsy View Post
I don't think that will catch class, just team.
Actually it does trigger on class also
__________________
Hunter-Digital is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-02-2009 , 21:51   Re: How do I take the event when the player chose the team and the class?
Reply With Quote #7

Quote:
Originally Posted by alan_el_more View Post
How do I take the event when the player chose the team and the class?
PHP Code:
new g_TeamJoin[33];

public 
plugin_init() 
{
    
register_event"TeamInfo" "fwPlayerJoinedTeam" "a" "2=TERRORIST" "2=CT" );
}

public 
client_connectid )
{
        
g_TeamJoinid ] = 0;
}

public 
fwPlayerJoinedTeam()
{
    new 
id read_data);
    
    if ( !
g_TeamJoinid ] )
    {    
        
//Joined team
        
g_TeamJoinid ] = 1;
    }
    else
    {
        
//Joined class
        
g_TeamJoinid ] = 0;
    }

__________________

Last edited by Bugsy; 06-03-2009 at 00:02.
Bugsy 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 14:05.


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