Quote:
Originally Posted by ironskillz1
Works now thanks
|
Sorry its still crashes
When im spam throw dodgeball the server crashes
Code:
public fwdSetModel(ent,const model[])
{
if(!pev_valid(ent) || !equal(model,"models/w_hegrenade.mdl"))
return FMRES_IGNORED
switch(g_iCurrentGame)
{
case GAME_DGBALL: engfunc(EngFunc_SetModel, ent, g_szDodgeball_World)
case GAME_ZMBOMBS: engfunc(EngFunc_SetModel, ent, g_szZombiebomb_World)
case GAME_SNOWBALL: engfunc(EngFunc_SetModel, ent, g_szSnowball_World)
case GAME_ANGRYBIRDS: engfunc(EngFunc_SetModel, ent, g_szAngryBirds_World)
default: return FMRES_IGNORED
}
set_task(4.0, "KILL", ent)
return FMRES_SUPERCEDE
}
public KILL(ent)
{
if(!pev_valid(ent))
return FMRES_IGNORED
engfunc(EngFunc_RemoveEntity, ent);
}
__________________