You need to define the function onPlayerProcessTick()
The first parameter that it's called with is the player object, and the next one is the inputs (could be wrong about the second one, I don't use it)
Return 0 makes them stop moving completely.
Returning a blank returns to whatever they were doing.
Return 0 if you are not making them do anything. (Probably want to do this most of the time)
Example:
function onPlayerProcessTick(%this, %input)
{
talk(%this.client.name @ "'s tick" SPC %input);
return 0;
}
There is a similar function onGetAIMove for bots.