samp OnVehicleDeath.
#1

Hi, why this callback:

OnVehicleDeath

Is not called when car explode him self? i have mean:

I spawn a lot of cars in one place, then them start explode but i don't get this message in console:

Код:
public OnVehicleDeath( vehicleid, killerid )
{
	printf("%d", vehicleid );
}
When i self explode car then all is well.
Reply
#2

add return to this callback
Reply
#3

I try to do that, but still nothing.
Reply
#4

how you create the veh ?
Reply
#5

well sir each vehicle haves its own id so if gets called when the vehicle of specific id gets explode you can get the vehicle's id of a player by the function GetPlayerVehicleID(playerid)
Reply
#6

How it suppose gonna work?

You mean like he will just put the function there and then all problem will be fix??

Well first of all OnVehicleDeath doesn't have playerid parameters.

Budelis what way you create the vehicle??
Reply
#7

CreateVehicle.

When player spawn i create 5 cars in same coordinates.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)