DestroyPlayerObject

DestroyPlayerObject

Description:
Function DestroyPlayerObject destroy a player-object created using CreatePlayerObject.


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


Return Values:
This function does not return any specific values.


Examples:
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.