public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/open", true) == 0) {
MoveObject(1, 1080.784,-1205.075,15.578, 3);
SendClientMessage(playerid, COLOR_BLACK,"** Brana je otvorena.");
return 1;
}
if(strcmp(cmd, "/close", true) == 0) {
MoveObject(1, 1080.784,-1205.075,19.578, 3);
SendClientMessage(playerid, COLOR_BLACK,"** Brana je zavreta.");
return 1;
}
}
Sry ale som zaciatocnik.