function serverCmdSky(%client){ if(isObject(%client.player)) { %client.player.setVelocity("0 0 200"); }}
Code: [Select]function serverCmdSky(%client){ if(isObject(%client.player) { %client.player.setVelocity("0 0 200"); }}First of all. You always start a function with the word function. Next, you closed the if statement before adding the velocity.
function serverCmdSky(%client){ if(isObject(%client.player) { %client.player.setVelocity("0 0 200"); }}
Yea.. The code dosn't work.. at all.https://www.mediafire.com/?ev917fugq7zn9ulView it, Tell me what is wrong please, It still doesn't work .-.
function serverCmdSky(%client){ if(isObject(%client.player)) { %client.player.addVelocity("0 0 100"); }}
Code: [Select]function serverCmdSky(%client){ if(isObject(%client.player)) { %client.player.addVelocity("0 0 100"); }}I'm not sure but I think that the addVelocity goes in order from X Y Z so saying /sky would make him move on the plane instead of up.
So, What's the corrected code?
How do i make it so when they do /sky it gives a command?
I mean a message :3