this amxx requires players to use custom player model.
First, SoccerJam mode is installed in my server. When the new round starts (due to the goal), some people will be kicked because of SZ_splace overflow error. How to fix it? (the amxx is attached)
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "player"
#define VERSION "1.2"
#define AUTHOR "naven"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "runda", 1);
}
public runda(id){
if(cs_get_user_team(id) == CS_TEAM_T) {
if(is_user_connected(id))
cs_set_user_model(id, "winwin")
}
else if(cs_get_user_team(id) == CS_TEAM_CT){
cs_set_user_model(id, "gogo")
}
}
public plugin_precache(){
precache_model("models/player/winwin/winwin.mdl")
precache_model("models/player/gogo/gogo.mdl")
}