How would I create a delay....
You can do it with YSI's y_timers if you'd like. I find the syntax to be much easier.
pawn Код:
//add this in function
SetTimerEx("StartEngine",1000/*one second */,true,"d",GetPLayerVehicleID(playerid));
//somewhere else
public StartEngine(vehicleid)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1,lights, alarm, doors, bonnet, boot, objective);
return 1;
}