14.07.2011, 15:13
(
Последний раз редактировалось Adil; 15.07.2011 в 14:36.
)
pawn Код:
if(strcmp(cmdtext, "/Aopen", true)==0)
{
SendClientMessage(playerid,0xFFFF00AA, "The front gate has opened. Welcome Admin!");
MoveObject(Gate1,2839.70996094, 3261.31054688, 34.70434570, 3.0);
SetTimer("GateClose", 5000, 0);
return 1;
}
pawn Код:
forward GateClose();
pawn Код:
public GateClose()
{
MoveObject(Gate1,X,Y,Z,3);//Change X Y Z to the position in Gate1 = Createobject()
}