29.06.2015, 22:17
Use isto no seu GM para ligar o motor
Код:
stock SetVehicleEngineState(vid, setstate) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); if(setstate) SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); else SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); }
Код:
CMD:ligarmotor(playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб em umveнculo."); SetVehicleEngineState(GetPlayerVehicleID(playerid), 1); SendClientMessage(playerid, -1, "* Vocк ligou o motor do veнculo."); return 1; }