Anti-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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti-Heli kill (
/showthread.php?tid=176965)
Anti-Heli kill -
Libra_PL - 15.09.2010
Hey, can you give me here a simple anti-heli kill system? (If someone will make heli-kill, he teleports 200 metres high when he killed
)
I tried to search, but I couldn't find.
Thanks
Re: Anti-Heli kill -
iJumbo - 15.09.2010
what u mean exactly
Re: Anti-Heli kill -
GangsTa_ - 15.09.2010
Put this OnPlayerDeath:
if(!IsPlayerInVehicle(killerid, *heliid*)) return Kick(playerid);
Re: Anti-Heli kill -
iJumbo - 15.09.2010
sorry wrong response lol
Re: Anti-Heli kill -
wups - 15.09.2010
This would be better.
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 50) SetPlayerHealth(killerid, 0.0);
return 1;
}
Re: Anti-Heli kill -
Seven. - 15.09.2010
Where can you see death reasons?
Re: Anti-Heli kill -
Mike_Peterson - 15.09.2010
its here
https://sampwiki.blast.hk/wiki/Weapons
coz look
https://sampwiki.blast.hk/wiki/OnPlayerDeath
but i dont see chopper on there so same question
wups, where did u get reasons
Re: Anti-Heli kill -
Las Venturas CNR - 15.09.2010
Where did you find death reason 50 was for helicopter kill? It wasn't in wiki. (Wiki Weapons)
Re: Anti-Heli kill -
Las Venturas CNR - 15.09.2010
@Da_Boss: Wasn't that similar to something in the official IRC plugin/ fs/ include?