Raised This Month: $ Target: $400
 0% 

set model + prevent crash


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ownage
BANNED
Join Date: Jul 2007
Location: I don't know
Old 07-12-2007 , 20:37   set model + prevent crash
Reply With Quote #1

using cs_set_user_model will sometimes dump the players in the server, without an error (SVC_BAD)

happens when there is only 12 people on the server

so i dont get sending it to one at a time would still crash?

Code:
        modloop=0         set_task(0.2,"looppm2",0,"",0,"a",32) public looppm2(){     modloop++     if(is_user_connected(modloop)&&is_user_alive(modloop)){         new szModel[33]         cs_get_user_model(modloop, szModel, 32)         if (containi(szModel, "mc") ==-1 && containi(szModel, "freeman") ==-1 ){             set_model2(modloop)             }         }     } public set_model(id){     if(!is_user_alive(id)||!is_user_connected(id)){         return     }         if(cs_get_user_team(id) == CS_TEAM_T){                     cs_set_user_model(id, "mc")                         }         else if(cs_get_user_team(id) == CS_TEAM_CT){                     cs_set_user_model(id, "freeman")             }     }

everything in the script is correct exept the damn function cs_set_user_model

whats weird is: if that svc_ban error happens, the player dont get disconnected at once, they get disconnected every .2 seconds, like i see other people getting booted .2 seconds one gone .2 seconds another one gone and .2 seconds im gone

is there any other way to prevent server "dump" crash ???

iv search and there is no good solution, and we need to get this settled, valve a piece of crap
Ownage is offline
 



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 21:31.


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