public cmd_box(id)
{
static i
if((id < 0) || (is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT))
{
if(g_TeamAlive[CS_TEAM_T] <= get_pcvar_num(gp_BoxMax) && g_TeamAlive[CS_TEAM_T] > 1)
{
for(i = 1; i <= g_MaxClients; i++)
if(is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T)
set_user_health(i, 100)
entity_set_string(id, EV_SZ_viewmodel, "v_rekawice.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "p_rekawice.mdl")
set_cvar_num("mp_tkpunish", 0)
set_cvar_num("mp_friendlyfire", 1)
g_BoxStarted = 1
for(new i=1 ; i<32 ; i++ )
{
if(is_user_connected(i))
player_hudmessage(i, 1, 3.0, {0, 255, 0}, "%L", LANG_SERVER, "JBE_GUARD_BOX")
}
}
else
{
player_hudmessage(id, 1, 3.0, _, "%L", LANG_SERVER, "JBE_GUARD_CANTBOX")
}
}
return PLUGIN_HANDLED
}
Po właczeniu walki serwer sie crashuje, w konsoli jest to:
FATAL ERROR (shutting down): SV_ModelIndex: model v_rekawice.mdl not precached