here it is
#include <a_samp>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
forward GateClose();
#if defined FILTERSCRIPT
new pdgate;
new lod;
new vrata;
new vchod;
public OnFilterScriptInit()
{
pdgate= CreateObject(980,-717.388733, 956.385986, 13.906204, 0.0000, 0.0000, 88.2811);
lod= CreateObject(2755, -1374.510498, 1491.363525, 11.545547, 0.0000, 0.0000, 270.0000);
vrata= CreateObject(987, -712.729919, 844.137390, 13.733120, 0.0000, 357.4217, 133.2039);
vchod= CreateObject(8536, 1015.318542, 1224.709717, 17.068413, 0.0000, 0.0000, 90.0000);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/open", true)==0)
if(IsPlayerAdmin(playerid))
{
MoveObject(pdgate,-717.388733, 970.385986, 13.906204,3.5);
SendClientMessage(playerid, COLOR_YELLOW,"Brana otevrena");
return 1;
}
if (strcmp(cmdtext, "/close", true)==0)
if(IsPlayerAdmin(playerid))
{
MoveObject(pdgate,-717.388733, 956.385986, 13.906204,3.5);
SendClientMessage(playerid, COLOR_YELLOW,"Brana zavrena");
return 1;
}
if (strcmp(cmdtext,"/openl",true)==0)
if(IsPlayerAdmin(playerid))
{
MoveObject(lod, -1374.510498, 1491.363525, 15.545547,3.5);
SendClientMessage(playerid, COLOR_YELLOW,"Brana otevrena");
return 1;
}
if (strcmp(cmdtext, "/closel", true)==0)
if(IsPlayerAdmin(playerid))
{
MoveObject(lod, -1374.510498, 1491.363525, 11.545547,3.5);
SendClientMessage(playerid, COLOR_YELLOW,"Brana zavrena");
return 1;
}
if (strcmp(cmdtext,"/open 777",true)==0)
{
MoveObject(vrata,-712.729919, 844.137390, 17.733120,3.5);
SendClientMessage(playerid, COLOR_YELLOW,"Brana otevrena");
return 1;
}
if (strcmp(cmdtext, "/close 777", true)==0)
{
MoveObject(vrata, -712.729919, 844.137390, 13.733120,3.5);
SendClientMessage(playerid, COLOR_YELLOW,"Brana zavrena");
return 1;
}
if (strcmp(cmdtext, "/open 985", true)==0)
{
MoveObject(vchod, 1015.318542, 1224.709717, 27.068413,10);
SendClientMessage(playerid, COLOR_YELLOW,"Pristup povolen");
return 1;
}
if (strcmp(cmdtext, "/close 985", true)==0)
{
MoveObject(vchod, 1015.318542, 1224.709717, 17.068413,10);
SendClientMessage(playerid, COLOR_YELLOW,"Vchod zavren");
return 1;
}
return 1;
}