I'm having problems with 32 slots team swap.
Actually I'm getting overflow error (with server crash) when I try to swap teams in a full 32 slot server.
I found that with 20 slots works fine but if I increase the number of players, I get crashes.
I know it's related with too many reliable messages.
I've tried to hook messages to change MSG_ONE to MSG_BROADCAST with the following hook but still getting same error.
PHP Code:
public fwd_messagebegin(msg_dest, msg_type, origin[3], ent)
{
if(msg_type != gmsgTeamInfo)
return FMRES_IGNORED
if(msg_dest == MSG_ALL)
{
message_begin(MSG_BROADCAST, msg_type, origin, ent)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
I've tested to change team using only m_iTeam (offset 114) and let CS change team at round start but still the same. Only with no more than 20 players works fine.
Someone have any clue to solve this?
__________________