bewts.
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.speed = 1;
createTaskBarButton();
}
function ChatBar.onAction() {
if (ChatBar.text.starts("/boots")) {
temp.newspeed = ChatBar.text.substring("/boots ".length());
if (temp.newspeed) {
this.speed = temp.newspeed;
}
ChatBar.text = "";
initBoots();
}
}
function createTaskBarButton() {
with (Serverlist_TaskBar) {
new GuiButtonCtrl("Serverlist_TaskButton_Boots") {
profile = Serverlist_TaskButton_Server.profile;
width = 65;
x = 500 + 64 + 10;
text = " Boots";
thiso.catchevent(name, "onAction", "initBoots");
}
}
}
function initBoots() {
this.boots = !this.boots;
setTimer(0.05);
}
function onTimeout() {
if (this.boots) {
for (temp.i = 0; temp.i < 4; temp.i++) {
if (keydown(temp.i)) {
player.x += this.speed * vecx(temp.i);
player.y += this.speed * vecy(temp.i);
}
}
setTimer(0.05);
}
}