how to allow unlimited team changes?
hi, im trying to avoid the message in CS "Only one team change is allowed" (#Only_1_Team_Change) and allow to player changes team.
I canīt hook the message/event to disable this role. do i need some more sophisticate function like register_forward or set a flag in the player's entity? how the server knows the teams changes? i don't want to 'force' using cs_set_user_team and dllfunc(DLLFunc_Spawn, id), etc. :| |
Re: how to allow unlimited team changes?
This will remove "Only 1 Team Change Is allowed" message:
PHP Code:
|
Re: how to allow unlimited team changes?
Be careful about adding continues in directly after a handle, it could encounter errors. I'm not sure if it goes for Pawn though.
|
Re: how to allow unlimited team changes?
Quote:
|
Re: how to allow unlimited team changes?
Quote:
|
Re: how to allow unlimited team changes?
I thought so, I wasn't to sure though so I was just saying.
|
Re: how to allow unlimited team changes?
Quote:
if ( equali( szMsgInfo, "#Only_1_Team_Change" ) ) { // in this point i cant execute a command like jointeam or chooseteam because it's recursive and we're 'inside' the message 'TextMsg', we cant send another message return PLUGIN_HANDLED } |
Re: how to allow unlimited team changes?
So...
The message #Only_1_Team_Change is just a consequence of try change team more than one time in a round Is there a message before #Only_1_Team_Change for intercept? Or do i need set a flag on server or client? I don't know where is this control (server side / client side). I tried search on HL SDK but don't have success, i'm noob :( |
Re: how to allow unlimited team changes?
There probably is an offset for that, but I don't think anyone knows about it (yet).
So the best way right now would be to change the player's team manually by hooking the change team menu and detecting whenever they select a different team... |
Re: how to allow unlimited team changes?
Quote:
-edit- PHP Code:
|
| All times are GMT -4. The time now is 08:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.