Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hitbox = false;
- var fly = false;
- function chatHook(text) {
- var spli = text.split(" ");
- if (text == ".help") {
- preventDefault();
- clientMessage("Welcome to CMDV1 made by Founder");
- clientMessage(".hitbox");
- clientMessage(".fly");
- }
- if (text == ".hitbox") {
- preventDefault();
- if (!hitbox) {
- hitbox = true;
- clientMessage("Hitbox Enabled");
- } else {
- hitbox = false;
- clientMessage("Hitbox Disabled");
- }
- }
- if (text == ".fly") {
- preventDefault();
- if (fly == false) {
- fly = true;
- clientMessage("Fly Enabled");
- } else {
- fly = false;
- clientMessage("Fly Disabled");
- }
- }
- if (fly) {
- Player.setCanFly(1);
- Player.setFlying(1);
- } else {
- Player.setFlying(0);
- if(Level.getGameMode() != 1) {
- Player.setCanFly(0);
- }
- }
- }
- function attackHook(att, vic) {
- if (hitbox) {
- Entity.setCollisionSize(vic, 5, 5);
- } else {
- Entity.setCollisionSize(vic, 0.6, 1.8);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment