IsPlayerObjectMoving

From SA-MP Wiki

Jump to: navigation, search


IsPlayerObjectMoving was added in SA-MP 0.3d This function was added in SA-MP 0.3d and will not work in earlier versions!


Description:

Checks if the given player objectid is moving.


Parameters:
(playerid, objectid)
playeridThe ID of the player whose player-object is checked.
objectidThe player objectid you want to check if is moving.


Return Values:

1 if the player object is moving, 0 if not.


Example Usage:

if(IsPlayerObjectMoving(playerid, objectid)) StopPlayerObject(playerid, objectid);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.



Related Callbacks

The following callbacks might be useful as well, as they are related to this callback in one way or another.

Personal tools
Navigation
Toolbox
In other languages