CnoPTuK
Умник
PHP:
new LSBar;
PHP:
if(strcmp(cmdtext, "/lsopen1", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 1544.684692, -1630.881592, 13.004568))
{
MoveDynamicObject(LSBar, 1544.6847, -1630.8816, 13.0046,0.12,0.0000, 0.0000, 90.0000);
SetTimer("LSClose", 7000, 0);
}
else SendClientMessage(playerid, -1, "* Вы не у ворот LSPD!");
}
else SendClientMessage(playerid, -1, "* Вы не состоите в законе!");
}
return 1;
}
PHP:
if(IsPlayerInRangeOfPoint(playerid, 15.0, 1544.684692, -1630.881592, 13.004568))
{
MoveDynamicObject(LSBar, 1544.6847, -1630.8816, 13.0046,0.12,0.0000, 0.0000, 90.0000);
SetTimer("LSClose", 7000, 0);
return 1;
}
PHP:
LSBar = CreateDynamicObject(968, 1544.684692, -1630.881592, 13.004568, 0.0000, 90.0000, 90.0000); //
PHP:
forward LSClose();
PHP:
public LSClose() return MoveDynamicObject(LSBar, 1544.6847, -1630.8816, 13.0046,0.12,0.0000, 90.0000, 90.0000);
