|
本帖最后由 心静如水 于 2009-5-21 22:27 编辑
public hook_TakeDamage(Victim, Useless, Attacker, Float:damage, damagebits)
{
static cvar
cvar = get_pcvar_num(P_Cvars[0])
if(!cvar)return HAM_IGNORED
static Gun
if(Useless <= Max_Players && Useless != 0)Gun = get_user_weapon(Attacker) else
{
static classname[32]
pev(Useless,pev_classname,classname,31)
if(equal(classname,"grenade"))Gun = 4
else if(!Useless)Gun = 2
}
if(!Gun)return HAM_IGNORED
...............................
红色那句话好像不配对 |
|