heli kill
#1

how to stop players from heli kill?
Is there any code?
Reply
#2

I don't think you can stop a player from heli killing once, but you can script so that the killer is killed aswell.

Here is a thread that shows it.
https://sampforum.blast.hk/showthread.php?tid=176965
Reply
#3

I've never tried it, but I think you can do it with OnPlayerGiveDamage
I'm not sure if it works with heli...
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    new Float:dHealth;
    if(weaponid == 50) {
        GetPlayerHealth(damagedid, dHealth);
        SetPlayerHealth(damagedid, dHealth+amount);
    }
    return 1;
}
Reply
#4

You'll have to set everyone's team to the same (0) and handle health/armour in OnPlayerGive/TakeDamage (not taking damage if it's heli blades).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)