Checking if Engine is off
#1

How to check if the vehicles engine is off?
Reply
#2

pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
    new vid = GetPlayerVehicleID(playerid);
                GetVehicleParamsEx(vid ,engine,lights,alarm,doors,bonnet,boot,objective);
                if (engine==1)
                {
                    //Engine is on
                }
                else
                {
                    //Engine is off
                }
                return 1;
            }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)