Raised This Month: $ Target: $400
 0% 

get user team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Atspulgs
Senior Member
Join Date: Mar 2008
Old 06-03-2009 , 16:19   get user team
Reply With Quote #1

How can i get the team of the user that calls the function?
__________________
-=DG Ats
DoomedGang web page -
http://www.doomedgang.com
Atspulgs is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-03-2009 , 16:27   Re: get user team
Reply With Quote #2

PHP Code:
public function(id)
{
    new 
team get_user_team(id)

__________________
fysiks is offline
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 06-03-2009 , 16:27   Re: get user team
Reply With Quote #3

get_user_team(id) == 1 //ts
get_user_team(id) == 2 //ct
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 06-03-2009 , 16:33   Re: get user team
Reply With Quote #4

Quote:
Originally Posted by biscuit628 View Post
get_user_team(id) == 1 //ts
get_user_team(id) == 2 //ct


get_user_team(id) == 3 // spec
get_user_team(id) == 0 // unnasigned
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Atspulgs
Senior Member
Join Date: Mar 2008
Old 06-03-2009 , 16:53   Re: get user team
Reply With Quote #5

thx
__________________
-=DG Ats
DoomedGang web page -
http://www.doomedgang.com
Atspulgs 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 13:59.


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