Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UI = 1;
- home = 0;
- event onPlayerJoined(player){
- pos = player.position;
- posx = math.ceil(pos.x);
- posy = math.ceil(pos.y);
- posz = math.ceil(pos.z);
- effectManager.sendUI(12715, 12715, player.id, "X:" + posx + " Y:" + posy + " Z:" + posz);
- }
- event onInterval(1){
- foreach(player in server.players){
- if(UI == 1){
- pos = player.position;
- posx = math.ceil(pos.x);
- posy = math.ceil(pos.y);
- posz = math.ceil(pos.z);
- effectManager.sendUI(12715, 12715, player.id, "X:" + posx + " Y:" + posy + " Z:" + posz);
- }
- }
- }
- command fps(){
- permission = "fps";
- execute(){
- if(UI == 1){
- effectManager.clearUIbyID(12715, player.id);
- player.message("You now hide the coords");
- UI = 0;
- return;
- }
- if(UI == 0){
- UI = 1;
- player.message("You now show the coords");
- }
- }
- }
- command sethome(){
- permission = "sethome";
- execute(){
- pos = player.position;
- if(home == 0){
- player.message("Now set the home!");
- home = pos;
- }
- if(home >= 1){
- player.message("You already have a home!");
- }
- }
- }
- command delhome(){
- permission = "delhome";
- execute(){
- home = 0;
- player.message("You are deleted your home!");
- }
- }
- command GoHome(){
- permission = "tp.home";
- execute(){
- player.teleport(home);
- player.message("You now in your home!");
- }
- }
- command WhereHome(){
- permission = "tp.select";
- execute(){
- if(home >= 1){
- player.setMarker(home);
- player.message("Your home are marker in your map!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement