Raised This Month: $ Target: $400
 0% 

How to use cs_get_user_team() and what is the name of a player entity?(ALMOST SOLVED)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-05-2008 , 23:26   Re: How to use cs_get_user_team() and what is the name of a player entity?
Reply With Quote #8

Quote:
Originally Posted by XxAvalanchexX View Post
cs_get_user_team returns as "CsTeams", so declare the variable like "new CsTeams:Team". Then you have to set or check it using CS_TEAM_T, CS_TEAM_CT, etcetera. Or, you could use a regular variable, and convert the return result into an int: "new Team = _:cs_get_user_team(player)"

Peoples Army: The second argument to get_user_team is optional, it lets you get the team name (in addition to get_user_team returning the team number).
What do you mean the second argument is optional? I couldn't use cs_get_user_team() without it. :O
And besides, I wanted it to return the team's NAME not NUMBER.
So I did needed to use the second argument?
And where do I need to put Team after i did new CsTeams:Team in the get_user_team function?
by the way, to set its team, do i need to do this: new CsTeams:Team = CS_TEAM...?

Peoples Army: Thanks for the karma

Vet: I think i'll use that just incase issues might pop up using the fun/cstrike module... +karma
__________________
O o
/¯________________________
| IMMA FIRIN' MAH LAZOR!!!
\_¯¯¯
Dores 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 05:40.


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