Anti-Heli kill
#1

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
Reply
#2

what u mean exactly
Reply
#3

Put this OnPlayerDeath:

if(!IsPlayerInVehicle(killerid, *heliid*)) return Kick(playerid);
Reply
#4

sorry wrong response lol
Reply
#5

This would be better.
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 50) SetPlayerHealth(killerid, 0.0);
return 1;
}
Reply
#6

Where can you see death reasons?
Reply
#7

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
Reply
#8

Where did you find death reason 50 was for helicopter kill? It wasn't in wiki. (Wiki Weapons)
Reply
#9

@Da_Boss: Wasn't that similar to something in the official IRC plugin/ fs/ include?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)