16.08.2015, 12:15
Well, OnVehicleSirenStateChange is called when the alarm is activated.
Is this normal ?
Is this normal ?
#include <a_samp>
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(alarm)
{
return 1;
}
CallLocalFunction("FIX_OnVehicleSirenStateChange", "iii", playerid, vehicleid, newstate);
return 1;
}
#if defined _ALS_OnVehicleSirenStateChange
#undef OnVehicleSirenStateChange
#else
#define _ALS_OnVehicleSirenStateChange
#endif
#define OnVehicleSirenStateChange FIX_OnVehicleSirenStateChange
forward FIX_OnVehicleSirenStateChange(playerid, vehicleid, newstate);