18.08.2009, 12:29
pawn Код:
if(strcmp(cmdtext,"/secret1", true) == 0) //OPENGATE
{
if(PlayerToPoint(15.0, playerid, -2468.3889, 1547.0945, 23.8359))
{
MoveObject(cozgate, -2468.371338, 1547.240723, 24.030167, 2.0);
SendClientMessage(playerid, 0x33FF33AA, "SUCCESS: Gate has been opened, automatically closing in 10 seconds");
SetTimerEx("CloseGate", 10000, false, "i", playerid);
}
return 1;
}
forward CloseGate(playerid)
public CloseGate(playerid)
{
MoveObject(cozgate, -2468.352051, 1547.224243, 21.280209, 2.0);
return 1;
}