function onCreated() { temp.canUse = this.amazingFunction(); if (temp.canUse) { } } function amazingFunction() { if (player.z < 2) { return false; } else { return true; } }
//#CLIENTSIDEfunction onCreated(){ 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; }}