Raised This Month: $ Target: $400
 0% 

How to get user real team?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wwzw
Member
Join Date: Feb 2009
Old 01-31-2012 , 02:03   Re: How to get user real team?
Reply With Quote #4

Quote:
Originally Posted by Hunter-Digital View Post
For CS it's cs_get_user_team() and there are some other mod specific functions, see funcwiki.
now I use :
PHP Code:
cs2_get_user_team(id)
{
 switch(
cs_get_user_team(id))
 {
  case 
CS_TEAM_UNASSIGNED: return 0;
  case 
CS_TEAM_T: return 1;
  case 
CS_TEAM_CT: return 2;
  case 
CS_TEAM_SPECTATOR: return 3;
 }
 return 
0;

Right or wrong ?
wwzw 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 00:21.


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