09.10.2015, 16:16
Код HTML:
#include <a_samp>
#pragma tabsize 0
new gate;
forward GateClose(playerid);
public OnFilterScriptInit()
{
gate = CreateObject(980, 1521.8, 2773, 12.4, 0.0, 0.0, 270.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/voroga", true)==0)
{
MoveObject(gate, 1521.8, 2773, 17.6, 1.0);
SetTimer("GateClose", 10000, 0);
return 1;
}
return 1;
}
public GateClose(playerid)
{
MoveObject(gate, 1521.8, 2773, 12.4, 1.0);
return 1;
}