Пређи на главни садржај

EndObjectEditing

Упозорење

Додато у верзији omp v1.1.0.2612. Ова ставка не ради у старијим верзијама. Врста: функција.

Description​

Cancel object edition mode for a player

NameDescription
playeridThe 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;
}