how to create a delay?
#3

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;
}
NOTE: UNTESTED!
Reply


Messages In This Thread
how to create a delay? - by Dokins - 26.12.2011, 18:14
Re: how to create a delay? - by Scenario - 26.12.2011, 18:18
Re: how to create a delay? - by [MG]Dimi - 26.12.2011, 18:18
Re: how to create a delay? - by Dokins - 26.12.2011, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)