Code:
new vHP = get_user_health(victum)
if(pHit == 1)
{
user_kill(victum)
return PLUGIN_HANDLED
}
if(pHit == 2 || pHit == 3)
{
vHP = (vHP - 30)
set_user_health(victum,vHP)
return PLUGIN_HANDLED
}
if(pHit == 4 || pHit == 5)
{
vHP = (vHP - 20)
set_user_health(victum,vHP)
return PLUGIN_HANDLED
}
if(pHit == 6 || pHit == 7)
{
vHP = (vHP - 15)
set_user_health(victum,vHP)
return PLUGIN_HANDLED
}
i can't highlight the changes but where it says victum, thats what I changed. You had it sending the victim's name to the functions, when it needs the index. this works. I tested it.