Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Script Created By Senior S
- //You are able to edit it as you pleasure
- event onPlayerJoined(player){
- player.setData("FlyMode", 0);
- }
- command fly(){
- permission = "flymode.use";
- execute(){
- if(player.getData("FlyMode") == 0){
- player.setData("FlyMode", 1);
- player.message("Now you are in flymode, to use this use POINT to up, SALUTE to down, WAVE to stop, SURRENDER to up the speed and FACEPALM to down the speed!");
- player.god = true;
- }
- else {
- player.speed = 1;
- player.setData("FlyMode", 0);
- player.message("You desactivate the flymode!");
- player.gravity = 1;
- player.god = false;
- }
- }
- }
- event onPlayerGestured(player, gesture){
- if(player.getData("FlyMode") == 1){
- if(gesture == "Salute"){
- player.gravity = 1;
- return;
- }
- else if(gesture == "Point"){
- player.gravity = -0.5;
- }
- else if(gesture == "Wave"){
- player.gravity = 0;
- }
- else if(gesture == "SurrenderStart"){
- player.speed = player.speed + 1;
- player.message("Actual Speed: " + player.speed);
- }
- else if(gesture == "Facepalm"){
- if(player.speed == 1){
- player.message("You actual speed is 1 you cant down the speed!");
- return;
- }
- player.speed = player.speed - 1;
- player.message("Actual Speed: " + player.speed);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement