28.12.2012, 16:11
Quote:
#include <a_samp> new Gate; public OnFilterScriptInit() { Gate = CreateObject(968, 1540.13, -1611.08, 12.94, 0.0, 88.42, 90.00, 100.0); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/gateopen", true)){ if(IsPlayerInRangeOfPoint(playerid, 15.0, 1540.13, -1611.08, 12.94)){ SetTimerEx("CloseGate", 7000, false, "i", playerid); MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 0.0, 90.00); return 1; } } return 0; } forward CloseGate(playerid); public CloseGate(playerid) { MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 88.42, 90.00); } |