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