Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*----------------------------------------------------------------------------*/
- CMD:ligarmotor(playerid, vehicleid) {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- new Veiculo, Motor, Farois, Alarme, portas, Capo, Portamalas, Localizacao, Nome[MAX_PLAYER_NAME], String[256];
- if(Motor == VEHICLE_PARAMS_OFF) {
- SetVehicleParamsEx(Veiculo, VEHICLE_PARAMS_ON, Farois, Alarme, portas, Capo, Portamalas, Localizacao);
- format(String, sizeof(String), "%s | ligou o veiculo , assim dando ignição ao motor",Nome);
- SendClientMessage(playerid, 0xFFFFFFFF, String);
- }
- }
- return 1;
- }
- /*----------------------------------------------------------------------------*/
- CMD:desligarmotor(playerid, vehicleid) {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- new Veiculo, Motor, Farois, Alarme, portas, Capo, Portamalas, Localizacao, Nome[MAX_PLAYER_NAME], String[256];
- if(Motor == VEHICLE_PARAMS_ON) {
- SetVehicleParamsEx(Veiculo, VEHICLE_PARAMS_OFF, Farois, Alarme, portas, Capo, Portamalas, Localizacao);
- format(String, sizeof(String), "%s | desligou o veiculo , assim parando o motor",Nome);
- SendClientMessage(playerid, 0xFFFFFFFF, String);
- }
- }
- return 1;
- }
- /*----------------------------------------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement