set a users team
Is there a way to set a users team (for cs1.6) without changing their model?
For example, Player joins CT and has SAS model. I force them to Terrorist but they still have the SAS model. I know I can just change their model to SAS once they are moved to Terrorist but I want to find a way of doing this without resetting the model. |
Re: set a users team
Umh it wont change the model if you force it alive. You could set the forced players model.
EDIT: Ehh, you didnt want to reset. sorry nvm.. |
Re: set a users team
Using TeamInfo I assume. http://wiki.alliedmods.net/Half-Life...vents#TeamInfo
|
Re: set a users team
Quote:
Code:
That only changes the score board, but it doesn't actually transfer them to the other team. EDIT: I found out how to do this now. Have to use set_pdata_int. Thanks for helping though. |
Re: set a users team
It seems that if I use set_pdata_int to change large amounts of player's team then it will crash the server. Anyone have a solution to this? Or even another method of what I want to do?
|
Re: set a users team
set_pev( id, pev_team, 1 )
Replace 1 with the team value, or the team const (ie. CT, TERRORSTS, whatever you cs'ers use) This does exactly what you want I do it in DoD all the time. |
Re: set a users team
Quote:
pev_team doesn't seem to work for me. I've tried PHP Code:
|
Re: set a users team
Quote:
|
Re: set a users team
I dunno why you need this but....
Code:
|
Re: set a users team
um set the player's team without changing their model:
Code:
from cstrike.inc: Code:
|
| All times are GMT -4. The time now is 21:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.