Advertisement
Guest User

Untitled

a guest
Dec 28th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.35 KB | None | 0 0
  1. /*----------------------------------------------------------------------------*/
  2. CMD:ligarmotor(playerid, vehicleid, params[]) {
  3.  
  4.     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  5.  
  6.         new Veiculo, Motor, Farois, Alarme, portas, Capo, Portamalas, Localizacao, Nome[MAX_PLAYER_NAME], String[256];
  7.  
  8.         if(Motor == VEHICLE_PARAMS_OFF) {
  9.  
  10.             SetVehicleParamsEx(Veiculo, VEHICLE_PARAMS_ON, Farois, Alarme, portas, Capo, Portamalas, Localizacao);
  11.  
  12.             format(String, sizeof(String), "%s | ligou o veiculo , assim dando ignição ao motor",Nome);
  13.             SendClientMessage(playerid, 0xFFFFFFFF, String);
  14.         }
  15.     }
  16.     return 1;
  17. }
  18. /*----------------------------------------------------------------------------*/
  19. CMD:desligarmotor(playerid, vehicleid, params[]) {
  20.  
  21.     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  22.  
  23.         new Veiculo, Motor, Farois, Alarme, portas, Capo, Portamalas, Localizacao, Nome[MAX_PLAYER_NAME], String[256];
  24.  
  25.         if(Motor == VEHICLE_PARAMS_ON) {
  26.  
  27.             SetVehicleParamsEx(Veiculo, VEHICLE_PARAMS_OFF, Farois, Alarme, portas, Capo, Portamalas, Localizacao);
  28.  
  29.             format(String, sizeof(String), "%s | desligou o veiculo , assim parando o motor",Nome);
  30.             SendClientMessage(playerid, 0xFFFFFFFF, String);
  31.         }
  32.     }
  33.     return 1;
  34. }
  35. /*----------------------------------------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement