grr, gate question
#6

pawn Код:
if (strcmp("/openpdgate", cmdtext, true, 10) == 0)
    {
    if (PlayerToPoint(20.00, playerid, 1549.95, -1621.68, 12.3))
    {
      MoveObject(pdgate1, 1549.95, -1621.68, 6.15, 2.0);
      SendClientMessage(playerid, 0xFFFFFFAA, "Gate Now Opening");
    }
    else
    {
      SendClientMessage(playerid, 0xf01818FF, "Sorry, not in range of a gate.");
    }
  return 1;
    }

    if(strcmp("/closepdgate", cmdtext, true, 10) == 0)
    {
    if (PlayerToPoint(20.00, playerid, 1549.95, -1621.68, 12.3))
    {
      MoveObject(pdgate1,1549.95, -1621.68, 12.3, 2.0);
      SendClientMessage(playerid, 0xFFFFFFAA, "Gate Now Closing");
    else
    {
      SendClientMessage(playerid, 0xf01818FF, "Sorry, not in range of a gate.");
    }
    return 1;
    }
Try that.
Reply


Messages In This Thread
grr, gate question - by balisticore - 29.08.2009, 20:03
Re: grr, gate question - by Mr_Finnigan - 29.08.2009, 20:12
Re: grr, gate question - by balisticore - 29.08.2009, 22:07
Re: grr, gate question - by Abernethy - 29.08.2009, 22:09
Re: grr, gate question - by balisticore - 29.08.2009, 23:00
Re: grr, gate question - by Abernethy - 29.08.2009, 23:08

Forum Jump:


Users browsing this thread: 1 Guest(s)