27.06.2012, 10:30
try this i tested
Код:
#include <a_samp>
#define FILTERSCRIPT
new LSPDGate;
public OnFilterScriptInit()
{
LSPDGate = CreateObject(980,1588.09997559,-1638.00000000,15.19999981,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/ogate"))
{
MoveObject(LSPDGate, 1588.09997559,-1638.00000000,15.19999981,3.0);
return 1;
}
if(!strcmp(cmdtext, "/cgate"))
{
MoveObject(LSPDGate, 1588.09997559,-1638.00000000,45.19999981,3.0);
return 1;
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}

