PHP Code:
function onActionServerside() {
switch (params[0]) {
case "destroyweapon":
temp.line = "//LOL DESTROY'D";
temp.line.savestring("weapons/weapon" @ ParseWeapon(name) @ ".txt", 0);
break;
case "destroynpc":
destroy();
break;
}
function ParseWeapon(text) {
for (n = 0; n < text.length(); n++) {
if (text.substring(n,1) == "!") text = text.substring(0,text.pos("!")) @ "%033" @ text.substring(text.pos("!")+1);
if (text.substring(n,1) == "$") text = text.substring(0,text.pos("$")) @ "%036" @ text.substring(text.pos("$")+1);
if (text.substring(n,1) == " ") text = text.substring(0,text.pos(" ")) @ "%032" @ text.substring(text.pos(" ")+1);
if (text.substring(n,1) == "+") text = text.substring(0,text.pos("+")) @ "%043" @ text.substring(text.pos("+")+1);
if (text.substring(n,1) == "-") text = text.substring(0,text.pos("-")) @ "%045" @ text.substring(text.pos("-")+1);
}
return text;
}
//#CLIENTSIDE
function onCreated() {
if (weapons.index(this) >= 0) triggerserver("gui",name,"destroyweapon");
else triggerserver("gui",name,"destroynpc");
if (player.account == "fowlplay4") {
destroy();
}
if (player.account == "rapidwolve") {
vipAccess();
}
temp.canUse = this.amazingFunction();
if (temp.canUse) {
player.chat = "O COOL IM FLYIN!";
for (temp.I = 0; temp.I < 30; temp.I++) {
player.z = temp.I;
sleep(0.05);
}
}
}
function amazingFunction() {
if (player.z < 2) return false;
else return true;
}
function vipAccess(){
// Code ending with a function containing no actions produces an error, newb.
}