Command issue
#3

Didn't change anything.
Here are all my cmds, if that'd help you find the issue:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/fdhangar", cmdtext, true, 10) == 0)
   
  {
   
    if (PlayerToPoint(20, playerid, 1701.0929,-1507.6711,13.3828))
    if(FDGate1status)
    {
       MoveObject(FDGate1, 1700.859375 , -1507.785156 , 14.566914, 1);
       FDGate1status = 0;
    }
    else
    {
      MoveObject(FDGate1, 1700.859375 , -1507.785156 , 8.566914, 1);
      FDGate1status = 1;
    }
    return 1;

 }
if (strcmp("/fdmaingate", cmdtext, true, 10) == 0)

  {
    if (PlayerToPoint(15, playerid, 1679.9694,-1479.9602,13.3828))
    if(FDMaingatestatus)
    {
       MoveObject(FDMaingate, 1680.0 , -1479.0 , 14.0, 1);
       FDMaingatestatus = 0;
    }
    else
    {
      MoveObject(FDMaingate, 1680.0 , -1471.0 , 14.0, 1);
      FDMaingatestatus = 1;
    }
    return 1;
 }
if (strcmp("/fdelevator", cmdtext, true, 10) == 0)

{
    if (PlayerToPoint(20, playerid,1709.761596 , -1465.448852 , 16))
    if(FDElevatorstatus)
    {
       MoveObject(FDElevator, 1709.761596 , -1465.448852 , 33.256496 , 2);
       FDElevatorstatus = 0;
    }
    else
    {
      MoveObject(FDElevator, 1709.761596 , -1465.448852 , 13.812069 , 2);
      FDElevatorstatus = 1;
        }
   
        return 1;
 }

if (strcmp("/mdmaingate", cmdtext, true, 10) == 0)
{
    if (PlayerToPoint(20, playerid,1142.2526,-1289.9144,13.5873))
    if(MDGate1status)

    {
       MoveObject(MDGate1, 1138.368408 , -1290.706909 , 14 , 2);
       MDGate1status = 0;

    }
    else
    {
      MoveObject(MDGate1, 1146.368408 , -1290.706909 , 14 , 2);
      MDGate1status = 1;
            return 1;
 }
if (strcmp("/mdelevator", cmdtext, true, 10) == 0)
    {
    if (PlayerToPoint(26, playerid,1148.358032,-1315.570678,24.000000))
    if(MDElevatorstatus)
    {
        MoveObject(MDElevator, 1148.358032,-1315.570678,31.79 , 2);
        MDElevatorstatus = 0;
    }
    else
    {
        MoveObject(MDElevator, 1148.358032,-1315.570678,14 , 2);
        MDElevatorstatus = 1;
    }
    return 1;
}

if (strcmp("/enter", cmdtext, true, 10) == 0)
{
        if (PlayerToPoint(3.0,playerid,1173.0345,-1323.7742,15.3973))
        {
            SetPlayerPos(playerid,1174.5543,-1310.0366,-4.9240);

        }
      return 1;
}
}
return 0;
}
Reply


Messages In This Thread
Command issue - by Shinzei_Banzai - 24.09.2009, 17:53
Re: Command issue - by MB@ - 24.09.2009, 17:55
Re: Command issue - by Shinzei_Banzai - 24.09.2009, 18:07
Re: Command issue - by DracoBlue - 24.09.2009, 18:09
Re: Command issue - by Peter_Corneile - 24.09.2009, 18:14
Re: Command issue - by Shinzei_Banzai - 24.09.2009, 18:27
Re: Command issue - by DracoBlue - 24.09.2009, 18:33
Re: Command issue - by Sznupek - 24.09.2009, 18:37
Re: Command issue - by Peter_Corneile - 24.09.2009, 18:40
Re: Command issue - by Sznupek - 24.09.2009, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)