傷害問題 200雅幣

Home Home
引用 | 編輯 tony486
2012-06-03 15:55
樓主
推文 x0
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(!is_user_connected(victim) 
|| !is_user_connected(attacker) 
|| get_cvar_num(CVAR_STATUS) <= 0 
|| !is_user_alive(victim))
return HAM_IGNORED;

if(damage_type == 16777216)
{




怎可以寫成只對敵人受傷害,  自己並不會有傷害呢.... 


急需要呢....表情 表情

獻花 x0
引用 | 編輯 我愛如花
2012-06-03 21:00
1樓
  
victim == attacker

獻花 x1
引用 | 編輯 tiankongsun
2012-06-05 12:19
2樓
  
這是什麼效果的插件

獻花 x0
引用 | 編輯 米魯
2012-07-27 10:23
3樓
  
如果是要讓自己不受傷害的話
去插件區找無敵插件
就好了

獻花 x0
引用 | 編輯 andyt0621
2012-07-27 14:24
4樓
  
if(!is_user_connected(victim)
|| !is_user_connected(attacker)
|| get_cvar_num(CVAR_STATUS) <= 0
|| !is_user_alive(victim)
|| attacker == victim)
return HAM_IGNORED;

獻花 x0