DestroyPlayerObject

Description

Destroy a player-object created using CreatePlayerObject.

NameDescription
playeridThe ID of the player whose player-object to destroy.
objectidThe ID of the player-object to destroy. Returned by CreatePlayerObject.

Returns

This function does not return any specific values.

Examples

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

Related Functions