Raised This Month: $ Target: $400
 0% 

DodgeBall


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-19-2013 , 10:47   DodgeBall
Reply With Quote #1

Okay so how can i make so when you trow a dodgeball it will disappear after 4 seconds on the ground
and is it any way i can do so the model is on the ground when i throw a dodgeball its half in the ground and half up

Code:
public Ham_Touch_Grenade_Pre( iEntity, id )
{
if( GAME_SNOWBALL <= g_iCurrentGame <= GAME_ZMBOMBS || g_iCurrentGame == GAME_SNOWBALL )
{
 if(is_user_alive(id))
 {
  ExecuteHamB(Ham_Killed, id, pev(iEntity, pev_owner), 0)
 
  remove_entity(iEntity)
 }
}
}
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
 }
 
 return FMRES_SUPERCEDE
}
public think_grenade(ent) 
{
 new model[32];
 entity_get_string(ent, EV_SZ_model, model, 31)
 
 if(equali(model,"models/w_dodgeball.mdl")) 
 {
  return PLUGIN_CONTINUE
 }
 
 // stop grenade from blowing up
 return PLUGIN_HANDLED
}
__________________
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.

Last edited by ironskillz1; 01-19-2013 at 11:29.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
 



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 13:23.


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