11.04.2012, 08:24
pawn Код:
CMD:engine(playerid)
{
if(GetPlayerVehicleID(playerid) != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
new rand = random(1) ? VEHICLE_PARAMS_ON : VEHICLE_PARAMS_OFF;
SetVehicleParamsEx(GetPlayerVehicleID(playerid),rand,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}