Must use command for...
#1

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...

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);
                }
            }
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
Reply


Messages In This Thread
Must use command for... - by Qur - 17.11.2011, 16:00
Re: Must use command for... - by Kostas' - 17.11.2011, 16:23
Re: Must use command for... - by Qur - 17.11.2011, 16:25
Re: Must use command for... - by Kostas' - 17.11.2011, 16:30
Re: Must use command for... - by Qur - 17.11.2011, 16:33
Re: Must use command for... - by CSSI - 17.11.2011, 16:34
Re: Must use command for... - by Qur - 17.11.2011, 16:43
Re: Must use command for... - by Qur - 17.11.2011, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)