
To je ova linija :
}Celi kod :
#include
#include
#pragma tabsize 0
new Gate;
public OnFilterScriptInit()
{
Gate=CreateObject(Gate, 2462.535156, 1653.684204, 12.471565, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gotogf, cmdtext, true, 10) ==0) //open gate"
{
MoveObject(Gate, 2462.360840, 1662.142456, 12.471565, 4);
SendClientMessage(playerid, 0xFF66FFFF,"Otvorio si kapiju."); //----you can change this message to anything of your choice
return 1;
}
if (strcmp("/closegroove", cmdtext, true, 10) ==0) //----you can change "/close" to anything of your choice
{
MoveObject(Gate, 2462.535156, 1653.684204, 12.471565, 4);
SendClientMessage(playerid, 0xFF66FFFF,"Zatvorio si kapiju."); //----you can change this message to anything of your choice
return 1;
}
return 0;
}