====== OnPlayerMoving hook callback function ======
This function is called in each server tick for each player that has sent any of the player-move packets. Plugins may refuse the movement.

===== Function signature =====
<code lua>
function OnPlayerMoving(Player)
</code>
Parameters:
| Player | [[API:cPlayer|cPlayer]] | The player who has moved. The object already has the new position stored in it. |

===== Return values =====
If the function returns true, movement is prohibited. FIXME: The player's client is not informed.

If the function returns false or no value, other plugins' callbacks are called and finally the new position is permanently stored in the [[API:cPlayer|cPlayer]] object.

===== Registering the callback =====
To register your plugin to receive a callback through this function, use the hook [[api:plugin:hooks|HOOK_PLAYER_MOVING]]
<code lua>
PluginManager = cPluginManager:GetPluginManager();
PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_MOVING);
</code>