I want a gate that opens on a command and closes automaticly in 5 seconds
#5

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()
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)