Hello,
I'll need some help of you guys, 3 things.
1. I need a loop, then it's only 1 Terrorist left this action should be executed:
PHP Code:
set_hudmessage ( 255, 64, 64, -1.0, 0.35, 0, 0.1, 5.0, 0.1, 0.1, -1 )
show_hudmessage ( 0, "[SG]: Game Over!")
strip_user_weapons( id )
if (cs_get_user_team(id) == CS_TEAM_CT)
{
give_item(id, "weapon_knife")
give_item(id, "weapon_m4a1")
give_item(id, "weapon_deagle")
cs_set_user_bpammo( id, CSW_M4A1, 90 )
cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
set_user_noclip(id, 0 )
} else if (cs_get_user_team(id) == CS_TEAM_T)
{
give_item(id, "weapon_knife")
server_cmd( "sv_gravity 800" )
server_cmd( "sv_airaccelerate 10" )
}
}
}
2. I need a function that's preventing the HE grenade to explode & they'll just dissapear, i've used grenade think for the explode prob but it isn't working.
3. The world models aren't working, they have been before but not now :s
It's like when i throw etc. a Snowball, there's a HE in the air instead of aw snowball.
PHP 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
}
return FMRES_SUPERCEDE
}
Thanks in advance!
__________________