StopObject

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:26, 22 August 2013
Smithy (Talk | contribs)

← Previous diff
Revision as of 01:28, 1 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 54: Line 54:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:StopObject]]

Revision as of 01:28, 1 February 2014



Description:

Stop a moving object after MoveObject has been used.


Parameters:
(objectid)
objectidThe ID of the object to stop moving.


Return Values:

This function does not return any specific values.


public OnGameModeInit()
{
    new obj;
    obj = CreateObject(...);
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/stopobject", true) == 0)
    {
        StopObject(obj);
        return 1;
    }
    return 0;
}

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 they're related to this function in one way or another.

In other languages