[Help] Whats is wrong with the code please?
#2

pawn Код:
new PDGate;
forward PDGateClose();
// PUT BOTH ON SCRIPT TOP
pawn Код:
PDGate = CreateObject(969,629.40325928,-583.38275146,15.62240791,0.00000000,0.00000000,270.00000000);
// GAMEMODE INIT
pawn Код:
public PDGateClose()
{
      MoveObject (PDGate,629.40325927734, -583.38275146484, 15.622407913208, 2.5);
     
      return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if (strcmp(cmdtext, "/PDGate", true)==0)
      {
      MoveObject(PDGate,629.40234375, -583.3818359375, 15.622407913208, 3.5);
      SetTimer("PDGateClose", 5000, false);
      SendClientMessage(playerid, 0xFFFF00AA, "The Policegate Will Shut In 5 Seconds");
      return 1;
      }



    return 0;
}
Reply


Messages In This Thread
[Help] Whats is wrong with the code please? - by BurgessGaming - 13.03.2011, 15:55
Re: [Help] Whats is wrong with the code please? - by blackwave - 13.03.2011, 15:59
Re: [Help] Whats is wrong with the code please? - by BurgessGaming - 13.03.2011, 16:04
Re: [Help] Whats is wrong with the code please? - by BurgessGaming - 13.03.2011, 16:06

Forum Jump:


Users browsing this thread: 2 Guest(s)