Cmd problems
#2

pawn Код:
if(strcmp(cmdtext, "/aopen", true) == 0)
    {
      if (IsPlayerAdmin(playerid))
      {
         MoveObject(admingate, 1010.09375, 1844.1826171875, 15.902549743652, 2.0);// Last number is speed
         SendClientMessage(playerid, COLOR_RED, "The gate is open");
         return 1;
      }
    }

     if(strcmp(cmdtext, "/aclose", true) == 0)
    {
      if (IsPlayerAdmin(playerid))
      {
        MoveObject(admingate, 1010.09375, 1844.1826171875, 11.402549743652, 2.0);
        SendClientMessage(playerid, COLOR_RED, "The Gate Is closed Now");
        return 1;
     }
    }
Command only works if the player is logged into RCON.
Reply


Messages In This Thread
Cmd problems - by R16RACA - 30.12.2010, 23:08
Re: Cmd problems - by scripter1 - 30.12.2010, 23:23
Re: Cmd problems - by R16RACA - 31.12.2010, 00:14
Re: Cmd problems - by blackwave - 31.12.2010, 00:16
Re: Cmd problems - by _rAped - 31.12.2010, 00:18
Re: Cmd problems - by R16RACA - 31.12.2010, 00:35
Re: Cmd problems - by Fool - 31.12.2010, 00:38
Re: Cmd problems - by scripter1 - 31.12.2010, 00:42
Re: Cmd problems - by R16RACA - 31.12.2010, 00:47
Re: Cmd problems - by scripter1 - 31.12.2010, 00:54

Forum Jump:


Users browsing this thread: 1 Guest(s)