17.11.2011, 16:00
Hey I'm trying on my driving test to make someone turn off his engine so he'll be able to continue the test.. if he wont turn off his engine it will stop the test..
I thought it will be easy.. but since i'm a beginner.. its a bit hard...
If anyone how to do it.. thanks
I hope its possible..
btw.. i have the /engine command..
EDIT: A timer would help?
if it does someone can help me with it abit? never worked with timers
I thought it will be easy.. but since i'm a beginner.. its a bit hard...
pawn Код:
else if(PlayerToPoint(5.0,playerid,2391.1626,-1487.6006,23.7031))
{
DrivingStep[playerid] = 30;
new vehicleid = GetPlayerVehicleID(playerid);
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == 0)
{
DrivingStep[playerid] = 31;
SetPlayerCheckpoint(playerid, 2397.5991,-1516.1816,23.7110, 3.0);
}
else
{
SendClientMessage(playerid,COLOR_RED,"STATUS: You failed the test, I wasn't kidding!!");
SetVehicleToRespawn(veh);
DrivingTest[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
}
I hope its possible..
btw.. i have the /engine command..
EDIT: A timer would help?
if it does someone can help me with it abit? never worked with timers