Can only use it once.
#2

This goes near the top of your script...or outside of the gate cmd
pawn Код:
new bool:gateopen = false;
pawn Код:
CMD:gate(playerid, params[])
{
    if(playerVariables[playerid][pGroup] == 5)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, -411.60000610352, 1361.6999511719, 31.200000762939))
        {
            if(gateopen == false)
            {
                MoveObject(objectname, -411.60000610352, 1362, 14.800000190735, 1);
            }
            else
            {
                MoveObject(objectname2, -411.60000610352, 1361.6999511719, 31.200000762939, 1);
            }
        }
        else SendClientMessage(playerid, COLOR_RED, "You aren't near the S.A.S. gate!");
    }
    else return SendClientMessage(playerid, COLOR_RED, "You aren't part of S.A.S!");
    return 1;
}
Hmm..try this, if it still doesn't work what are the objectname and objectname2 defines
Reply


Messages In This Thread
Can only use it once. - by BleverCastard - 07.01.2012, 11:10
Re: Can only use it once. - by [ABK]Antonio - 07.01.2012, 11:17
Re: Can only use it once. - by BleverCastard - 07.01.2012, 11:22
Re: Can only use it once. - by [ABK]Antonio - 07.01.2012, 11:26
Re: Can only use it once. - by BleverCastard - 07.01.2012, 11:28
Re: Can only use it once. - by [ABK]Antonio - 07.01.2012, 11:32
Re: Can only use it once. - by BleverCastard - 07.01.2012, 11:35
Re: Can only use it once. - by Babul - 07.01.2012, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)