07.01.2011, 01:00
Hi, I am looking for a crash system for my server so that the EMS And Fire have something to do
Is there a system on here that anyone knows of?
Is there a system on here that anyone knows of?
I did something for my server, its really easy, I used OnVehicleDeath callback to create an object(crashed car) and particle objects(fire) on the place that the car blowed up, and then sending a message to the FD.
|
public OnVehicleDeath(vehicleid, killerid)
{
new
Float:Floats[4];
GetVehiclePos(vehicleid, Floats[0], Floats[1], Floats[2]);
GetVehicleZAngle(vehicleid, Floats[3]);
CreateDynamicObject(18691, Floats[0], Floats[1]-4, Floats[2], Floats[3], 0.00000000,0.00000000, 0, 0, _, 200.0);
CreateDynamicObject(18691, Floats[0], Floats[1]-4, Floats[2]+1, Floats[3], 0.00000000,0.00000000, 0, 0, _, 200.0);
CreateDynamicObject(3594, Floats[0], Floats[1], Floats[2], Floats[3], 0.00000000,0.00000000, 0, 0, _, 200.0);
return 1;
}