DestroyPlayerObject

From SA-MP Wiki

Jump to: navigation, search


Description:

Destroy a player-object created using CreatePlayerObject.


Parameters:
(playerid, objectid)
playeridThe ID of the player whose player-object to destroy.
objectidThe ID of the player-object to destroy. Returned by CreatePlayerObject.


Return Values:

This function does not return any specific values.


public OnPlayerObjectMoved(playerid, objectid)
{
    DestroyPlayerObject(playerid, objectid);
    return 1;
}

Related Functions

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


Personal tools
Navigation
Toolbox
In other languages