Raised This Month: $ Target: $400
 0% 

How to get user real team?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-30-2012 , 21:29   Re: How to get user real team?
Reply With Quote #1

You could try this module
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-30-2012 , 23:02   Re: How to get user real team?
Reply With Quote #2

For CS it's cs_get_user_team() and there are some other mod specific functions, see funcwiki.
__________________

Last edited by Hunter-Digital; 01-30-2012 at 23:03.
Hunter-Digital is offline
wwzw
Member
Join Date: Feb 2009
Old 01-31-2012 , 02:03   Re: How to get user real team?
Reply With Quote #3

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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-31-2012 , 02:25   Re: How to get user real team?
Reply With Quote #4

Quote:
Originally Posted by wwzw View Post
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 ?
Pointless. Just use cs_get_user_team() as is with the CS_TEAM_* constants.
__________________
fysiks 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 00:20.


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