pawn Код:
CMD:engine(playerid,params[])
{
new vid;
vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if (engine) {
SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
SCM(playerid,COLOR_LIGHTRED,"Engine shut down!");
} else {
SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
SCM(playerid,COLOR_LIGHTRED,"The Vehicle Has Started!");
}
return 1;
}