06.03.2014, 22:45
pawn Код:
if (strcmp("/go", cmdtext, true, 12) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 10, 1539.57263, -1632.32275, 12.43860))
{
MoveDynamicObject(LSPDgate, 1539.5726, -1625.0808, 12.4386, 6);
SendClientMessage(playerid, 0xEF994300, "The gate have been opened.");
SetTimer("LSPDgateCheck", 10000, 0);
}
return 1;
}
pawn Код:
forward LSPDgateCheck();
public LSPDgateCheck()
{
MoveDynamicObject(LSPDgate, 1539.57263, -1632.32275, 12.43860, 6);
}