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