Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Script Created By Senior S
- priceperfuel = 5; //This is the price per 1% of fuel
- command fuel(arg){ //The command is /fuel (Percent of fuel)
- permission = "fuel";
- execute(){
- if(isSet(arg) == false){
- player.message("Hey boy pay for this plugin :) or change this message to a error message, you can choose xd");
- }
- else{
- checkprice = toNumber(arg);
- if(checkprice == 0){
- player.message("Mmm here you can add a message like: Please add a value greater to 0. Or you can buy the plugin :)");
- return;
- }
- else if(checkprice == 100 or checkprice => 100){
- player.message("Your car only have 100% of fuel, why you trying to add more?");
- }
- finalprice = priceperfuel * checkprice;
- if(player.experience < finalprice){
- player.message("Sorry boy, you are really poor.");
- }
- vv = player.look.getVehicle();
- else if(vv == null){
- player.message("SEE A FUCKING VEHICLE TO REFUEL IT, Thanks :)");
- return;
- }
- else {
- player.experience = player.experience - finalprice;
- vv.fuel = checkprice;
- player.experience("Thanks for use our service, fucking idiot :D");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment