get user old team
How to get user old team?
if i join the server and choose one of the team i must get message but if i change team do not show message for me. PHP Code:
PHP Code:
|
Re: get user old team
hook jointeam command and check cs_get_user_team there
also your part of code will still show the message if player switches to team from spectating, check if users team is CS_TEAM_UNASSIGNED for it to work only after connecting |
Re: get user old team
jointeam hooked.
is it right? :) PHP Code:
|
Re: get user old team
That statement will always evaluate to false
|
Re: get user old team
if (cs_get_user_team( id ) == CS_TEAM_UNASSIGNED )
|
Re: get user old team
Ok. But if i'm in CT and i change my team to T i will get the //message. What i'm trying to do is block message if i change my team but show message when i connect and choose the team.
|
Re: get user old team
|
Re: get user old team
If this is not enough, you may try do this:
PHP Code:
|
Re: get user old team
Quote:
i dont get you all with your bigass codes with 1000000 variables cacheing teams and shit Code:
|
Re: get user old team
Check this code in your server and join to CT after change team to T.
|
| All times are GMT -4. The time now is 05:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.