Raised This Month: $ Target: $400
 0% 

Server crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-25-2013 , 07:39   Server crash
Reply With Quote #1

Why do this make my server crash ?
Code:
register_forward(FM_SetModel, "fwdSetModel", 1);
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
 }
 if(task_exists(ent))
 remove_task(ent);
 set_task(2.0,"delete_it",ent);
 return FMRES_SUPERCEDE
}
Code:
public delete_it(ent) {
if(pev_valid(ent))
{  engfunc(EngFunc_RemoveEntity, ent);
 return FMRES_SUPERCEDE;
 }
return FMRES_IGNORED;
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Reply


Thread Tools
Display Modes

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 20:41.


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