Raised This Month: $ Target: $400
 0% 

32 slots Team swap


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-30-2010 , 14:14   32 slots Team swap
Reply With Quote #1

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_destmsg_typeorigin[3], ent)
{
      if(
msg_type != gmsgTeamInfo)
            return 
FMRES_IGNORED

      
if(msg_dest == MSG_ALL)
      {
            
message_begin(MSG_BROADCASTmsg_typeoriginent)
            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?
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 05-30-2010 at 20:25.
joropito is offline
Send a message via MSN to joropito
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode