run over actor
#4

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
You can use this include:
https://sampforum.blast.hk/showthread.php?tid=573504

PHP код:
forward OnActorDeath(actoridkilleridreason); 
So with that you can detect if the actor has died by a vehicle.
reason will be the weapon id:
https://sampwiki.blast.hk/wiki/Weapons

The weapon id of a vehicle kill is 49. So you could do something like this:
PHP код:
public OnActorDeath(actoridkilleridreason)
{
if(
reason == 49)
{
//actor was killed by vehicle
}
return 
1;

public OnActorDeath(actorid, killerid, reason)
{
if(reason == 49)

Using this include, it will never enter on this IF
if(reason == 49)
Reply


Messages In This Thread
run over actor - by binnyl - 03.03.2018, 01:34
Re: run over actor - by binnyl - 24.03.2018, 21:29
Re: run over actor - by jasperschellekens - 24.03.2018, 22:48
Re: run over actor - by weex - 31.03.2018, 02:28

Forum Jump:


Users browsing this thread: 3 Guest(s)