Help with Anti-Heli Blading
#1

Hello everyone, I'm trying to put a function in my script where if you drive a helicopters blade into someone, it would automatically destroy that helicopter. I tried this, by adding a new definition which is current veh and the helicopter reason on OnPlayerDeath which is 50, but it still didn't work. My helicopter was still there after I heli-bladed the person.

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new currentveh;
	if (reason == 50) DestroyVehicle(currentveh);
	{
	SendDeathMessage(killerid, playerid, reason);
	}
	return 1;
}
Reply


Messages In This Thread
Help with Anti-Heli Blading - by Mobeen - 09.02.2014, 13:36
Re: Help with Anti-Heli Blading - by judothijs - 09.02.2014, 14:21
Re: Help with Anti-Heli Blading - by Unfriendly - 09.02.2014, 14:57
Re: Help with Anti-Heli Blading - by judothijs - 09.02.2014, 15:15
Re: Help with Anti-Heli Blading - by Mobeen - 09.02.2014, 17:36
Re: Help with Anti-Heli Blading - by judothijs - 09.02.2014, 19:23
Re: Help with Anti-Heli Blading - by Mobeen - 11.02.2014, 22:53
Re: Help with Anti-Heli Blading - by Unfriendly - 20.02.2014, 19:35

Forum Jump:


Users browsing this thread: 2 Guest(s)