Raised This Month: $ Target: $400
 0% 

Team Change Event ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 07-18-2014 , 10:00   Team Change Event ?
Reply With Quote #1

Hi i'm making a plugin and i need to check when a player is changing the team and i mean like this for example if i'm on CT team and i change the team with cs_set_user_team to T how can i check that i have change the team and yes i have test it with register_event( "TeamInfo", "event_team_info", "a" ); but it doesn't work.

PHP Code:
register_clcmd("say /changeteam""changeteam")

public 
changeteam(id)
{
cs_set_user_team(id) == CS_TEAM_T);

Sorry for my bad english
__________________

Last edited by Balck; 07-18-2014 at 10:00.
Balck is offline
 



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


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