Graal Pastebin
New PastePasted on January 4, 2012.
View the raw file
//#CLIENTSIDE function onCreated() { this.on = false; setTimer(0.05); } function onKeyPressed(code, Key) { if (code == 160) { //shift key if (this.on == false) { this.on = true; player.chat = "(Mousewarp: ON)"; } else { this.on = false; player.chat = "(Mousewarp: OFF)"; } } } function onMouseDown(mode) { if (mode == "left" && this.on == true) { for (temp.p: players) { if (mousex in | temp.p.x - 1, temp.p.x + 3 | && mousey in | temp.p.y, temp.p.y + 2 | ) { client.sel = p.account; } elseif(client.sel != NULL && client.sel == p.account) { p.x = mousex; p.y = mousey; p.chat = "Warped"; player.chat = ""; client.sel = NULL; } } } if (mode == "right" && client.sel != NULL) { client.sel = NULL; } } /* The below is just something I added so I could identify if I have a player selected or not It isn't vital to have this and changing the players chat would do nicely too. */ function onTimeout() { if (client.sel != NULL) { MW_Window.visible = true; MW_Player.text = "Selected:" SPC client.sel; } else { MW_Window.visible = false; } setTimer(0.05); }