Moving gates not closing!
#2

SetTimerEx("gateclose",10000,false,"i",playerid); to
SetTimer("gateclose",10000,false);

pawn Код:
public gateclose(playerid)
{
     MoveObject(LSPDGate, 1540.59, -1627.57, 14.95, 2.0);
     GateOpen = 0;
}
If you want to send a message to nearby players, you can still do this after GateOpen = 0;

pawn Код:
for(new i=0;i<GetMaxPlayers();i++)
{
      if(IsPlayerInRangeOfPoint(i, 5.0, 1540.59, -1627.57, 14.95))
      {
            SendClientMessage(i, COLOR_LIGHTGREEN, "The gate is now closing!");
      }
}
Reply


Messages In This Thread
Moving gates not closing! - by NewerthRoleplay - 02.10.2012, 19:28
Re: Moving gates not closing! - by CmZxC - 02.10.2012, 19:34
Re: Moving gates not closing! - by NewerthRoleplay - 02.10.2012, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)