pomogite mne sdelat 4tobq eti vorota mogli otkrqt tolko Police/FBI/Army /*
Fs By Splitx LS Edition
*/
#include <a_samp>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
forward GateCloseLS();
forward GateCloseSF();
forward GateCloseLV();
#if defined FILTERSCRIPT
new pdgateLS;
new pdngateLS;
new pdgateLV;
new pdngateLV;
new pdngate2LV;
new pdgateSF;
new pdngateSF;
public OnFilterScriptInit()
{
pdgateLS = CreateObject(976, 1549.284668, -1626.937744, 12.544723, 0.0000, 0.0000, 90.0000);
pdngateLS = CreateObject(976, 1549.304565, -1636.401001, 12.544723, 0.0000, 0.0000, 90.0000);
pdgateLV = CreateObject(969, 2237.188965, 2448.813232, 9.845795, 0.0000, 0.0000, 90.0000);
pdngateLV = CreateObject(976, 2320.069092, 2449.282471, 2.435347, 0.0000, 0.0000, 270.0000);
pdngate2LV = CreateObject(976, 2320.052979, 2458.126953, 2.435347, 0.0000, 0.0000, 270.0000);
pdgateSF = CreateObject(969, -1701.770020, 679.915344, 24.057503, 0.0000, 0.0000, 90.0000);
CreateObject(969, -1700.105591, 688.051575, 24.057503, 0.0000, 0.0000, 0.0000);
pdngateSF = CreateObject(969, -1571.713013, 665.608154, 6.336499, 0.0000, 0.0000, 270.0000);
print("\n--------------------------------------");
print(" PDGate FS BY Splitx provided by www.samp-rus.com");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/open 1", true)==0)
{
MoveObject(pdgateLS,1549.270508, -1617.565308, 12.544723, 3.5);
MoveObject(pdngateLS,1549.314697, -1645.918091, 12.517562, 3.5);
SetTimer("GateCloseLS", 7000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"The Policegate In LS Is opened WILL CLOSE IN 7 SEC HURRY");
return 1;
}
if (strcmp(cmdtext, "/open 2", true)==0)
{
MoveObject(pdgateSF,-1701.773193, 670.980530, 24.041584, 3.5);
MoveObject(pdngateSF,-1571.828735, 656.457214, 6.354377, 3.5);
SetTimer("GateCloseSF", 7000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"The Policegate Is opened WILL CLOSE IN 7 SEC HURRY");
return 1;
}
if (strcmp(cmdtext, "/open 3", true)==0)
{
MoveObject(pdgateLV,2237.127930, 2458.059570, 9.840160, 3.5);
MoveObject(pdngateLV,2319.847656, 2461.079102, 2.435347, 3.5);
MoveObject(pdngate2LV,2319.847656, 2461.079102, 2.435347, 3.5);
SetTimer("GateCloseLV", 7000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"The Policegate In SF Is opened WILL CLOSE IN 7 SEC HURRY");
return 1;
}
return 0;
}
public GateCloseLS()
{
MoveObject (pdgateLS,1549.284668, -1626.937744, 12.544723, 2.5);
MoveObject (pdngateLS, 1549.304565, -1636.401001, 12.544723, 2.5);
return 1;
}
public GateCloseLV()
{
MoveObject (pdgateLV,2237.188965, 2448.813232, 9.845795, 2.5);
MoveObject (pdngateLV,2320.069092, 2449.282471, 2.435347, 2.5);
MoveObject (pdngate2LV,2320.052979, 2458.126953, 2.435347, 2.5);
return 1;
}
public GateCloseSF()
{
MoveObject (pdngateSF,-1571.713013, 665.608154, 6.336499, 2.5);
MoveObject (pdgateSF,-1701.770020, 679.915344, 24.057503, 2.5);
return 1;
}