Quote:
Originally Posted by XxAvalanchexX
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
__________________