Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. if(strcmp("/motor",cmdtext,true,6)==0)
  2. {
  3. new mot, lu, alar, por, cap, porma, ob;
  4. new carro;// = GetPlayerVehicleID(playerid);
  5. if(carro != INVALID_VEHICLE_ID)
  6. {
  7. if(motor[playerid] == 0)
  8. {
  9. GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
  10. SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
  11. motor[playerid] = 1;
  12. SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {2F991A}Ligado!");
  13. }
  14. else
  15. {
  16. GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
  17. SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
  18. motor[playerid] = 0;
  19. SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {E31919}Desligado!");
  20. }
  21. }
  22. return 1;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement