warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
EndObjectEditing
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Cancel object edition mode for a player
Name | Description |
---|---|
playerid | The ID of the player to cancel edition for |
Returns
This function does not return any specific values.
Examples
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/stopedit", true))
{
EndObjectEditing(playerid);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You stopped editing the object!");
return 1;
}
return 0;
}
Related Functions
- BeginObjectSelecting: Select an object.
- BeginObjectEditing: Edit an object.
- BeginPlayerObjectEditing: Edit an player-object.
- EditAttachedObject: Edit an attached object.
- CreateObject: Create an object.
- DestroyObject: Destroy an object.
- MoveObject: Move an object.