Blockland Forums > Modification Help
Client sided?!
xcruso:
Hey,
Sorry that i'm so noob in client sided codes but how do i get a simple code like this to work on other server
--- Quote ---function serverCmdwalk(%client)
{
moveforward(9);
}
--- End quote ---
infiniteLoop:
Lol @ moveForward(9);
Just type in the console:
--- Code: ---moveForward(1);
--- End code ---
To stop moving forward type:
--- Code: ---moveForward(0);
--- End code ---
Or you can use funny little variables in the same way:
--- Code: ---$mvForwardAction = 1;
--- End code ---
To stop moving forward:
--- Code: ---$mvForwardAction = 0;
--- End code ---
xcruso:
--- Quote from: infiniteLoop on July 27, 2011, 01:26:04 PM ---Lol @ moveForward(9);
Just type in the console:
--- Code: ---moveForward(1);
--- End code ---
To stop moving forward type:
--- Code: ---moveForward(0);
--- End code ---
Or you can use funny little variables in the same way:
--- Code: ---$mvForwardAction = 1;
--- End code ---
To stop moving forward:
--- Code: ---$mvForwardAction = 0;
--- End code ---
--- End quote ---
Yes i know that xD but i really just wanna know how so i can go make some things bether.
MegaScientifical:
Not what he's asking at all.
Just do "moveForward(9);" in console. Or, if putting the "9" is too much for you:
--- Code: ---function walkCruso() {
moveForward(9);
}
--- End code ---
Then do "walkCruso();" in console.
When a command has "serverCmd" in front of it, that makes it a command to be received by the server. Just take that junk off and there you go.
infiniteLoop:
Lol but why use 9, since the argument is a boolean, that doesn't make sense.. maybe i'm just too used to proper languages..