heli kill - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: heli kill (
/showthread.php?tid=449387)
heli kill -
Fernado Samuel - 08.07.2013
how to stop players from heli kill?
Is there any code?
Re: heli kill -
Mystique - 08.07.2013
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
Re: heli kill -
CAR - 08.07.2013
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;
}
Re: heli kill -
MP2 - 08.07.2013
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).