moving gate
#6

Try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/opengate", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,-2803.80004883,-479.10000610,6.19999981))
        {
            MoveObject(cgate,-2798.00000000,-471.60000610,5.79999981,1);
        }
        return 1;
    }

    if (strcmp("/closegate", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,-2798.00000000,-471.60000610,6.19999981))
        {
            MoveObject(cgate,-2798.00000000,-471.60000610,6.19999981,1);
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
moving gate - by Dare Devil..... - 30.07.2012, 11:30
Re: moving gate - by Avi57 - 30.07.2012, 11:56
Re: moving gate - by Dare Devil..... - 30.07.2012, 13:34
Re: moving gate - by Dan. - 30.07.2012, 14:05
Re: moving gate - by Dare Devil..... - 30.07.2012, 17:11
Re: moving gate - by Dan. - 30.07.2012, 17:41
Re: moving gate - by gnoomen2 - 31.07.2012, 01:53

Forum Jump:


Users browsing this thread: 1 Guest(s)