Is it possible to detect when two vehicles collide?
#4

maybe a check for other players in range of <10 units in this callback would do it?
Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
	new string[128];
	format(string,sizeof(string),"Vehicle ID %d damaged by playerid %d.",vehicleid,playerid);
	return 1;
}
the only small problem is: its printing out the vehicle owner of the damaged vehicle, not the causing player.
when someone shoots the car, it loses health, but the driver caused the damge. cant be real.
i tried to do an accurate solution, but i am stuck at this too.
due to that callback is called twice when cars collides, i tried to make a sort of counter for local accidents. but i failed. maybe someone else can solve that lol
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)