DoctorX13

Ups

May 2nd, 2020
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. //Script Created By Senior S
  2.  
  3. priceperfuel = 5; //This is the price per 1% of fuel
  4.  
  5. command fuel(arg){ //The command is /fuel (Percent of fuel)
  6. permission = "fuel";
  7. execute(){
  8. if(isSet(arg) == false){
  9. player.message("Hey boy pay for this plugin :) or change this message to a error message, you can choose xd");
  10. }
  11. else{
  12. checkprice = toNumber(arg);
  13. if(checkprice == 0){
  14. player.message("Mmm here you can add a message like: Please add a value greater to 0. Or you can buy the plugin :)");
  15. return;
  16. }
  17. else if(checkprice == 100 or checkprice => 100){
  18. player.message("Your car only have 100% of fuel, why you trying to add more?");
  19. }
  20. finalprice = priceperfuel * checkprice;
  21. if(player.experience < finalprice){
  22. player.message("Sorry boy, you are really poor.");
  23. }
  24. vv = player.look.getVehicle();
  25. else if(vv == null){
  26. player.message("SEE A FUCKING VEHICLE TO REFUEL IT, Thanks :)");
  27. return;
  28. }
  29. else {
  30. player.experience = player.experience - finalprice;
  31. vv.fuel = checkprice;
  32. player.experience("Thanks for use our service, fucking idiot :D");
  33. }
  34. }
  35. }
  36. }
Add Comment
Please, Sign In to add comment