Detecting team change, tag mismatch
Hey, so I want to detect team change, and when someone changes teams, or was transferred to a new one, his model will reset. I wanted to do this with 2 global variables like this
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: Detecting team change, tag mismatch
PHP Code:
PHP Code:
|
Re: Detecting team change, tag mismatch
Quote:
There is no "id" in the round end event. That's a global event. You need to loop all players in order to get their ids. |
Re: Detecting team change, tag mismatch
Quote:
PHP Code:
it's true? |
Re: Detecting team change, tag mismatch
But I need to get Id number, that will always be a zero right? Because I'm doing multiple people at once, I need to have 32 numbers, that's why I did this in the first place...
|
Re: Detecting team change, tag mismatch
Quote:
|
Re: Detecting team change, tag mismatch
You didn't get a "tag mismatch error", you got a warning. The warning means the left-hand side(lhs) tag and the right-hand side(rhs) tag do not match.
Check the expression: PHP Code:
PHP Code:
Check rhs: cs_get_user_team(id). http://amxmodx.org/api/cstrike/cs_get_user_team PHP Code:
About looping: search for get_players. Also, please edit your posts instead of making multiple unneeded posts. |
Re: Detecting team change, tag mismatch
Hey, so I did this:
PHP Code:
Code:
// D:\Games\srw\cstrike\addons\amxmodx\scripting\Moji PLOVI\adminmodel.sma(58) : error 033: array must be indexed (variable "g_PostTeam")PHP Code:
PHP Code:
|
Re: Detecting team change, tag mismatch
My code looks like this:
PHP Code:
PHP Code:
PHP Code:
|
Re: Detecting team change, tag mismatch
I don't really know how to loop trough players, never needed it before, can you make an example?
|
| All times are GMT -4. The time now is 17:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.