SA-MP Forums Archive
Alarm problem, doesn't stops - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Alarm problem, doesn't stops (/showthread.php?tid=424639)



Alarm problem, doesn't stops - PaulDinam - 23.03.2013

Whenever I call this :

pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
new param[7];
GetVehicleParamsEx(vehicleid,param[0],param[1],param[2],param[3],param[4],param[5],param[6]);  
SetVehicleParamsEx(vehicleid,param[0],param[1],VEHICLE_PARAMS_OFF,param[3],param[4],param[5],param[6]);
It doesn't stop the alarm just keeps beep beep even longer..


Re: Alarm problem, doesn't stops - greentarch - 23.03.2013

Maybe try this function? I copied this from SA-MP wiki
pawn Код:
stock DisableVehicleAlarm(vehicleid)
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehicleid, engine, lights, false, doors, bonnet, boot, objective);
}



Re: Alarm problem, doesn't stops - PaulDinam - 23.03.2013

same shit