My gate is not complying, help?
#1

pawn Код:
new open = 0;
    if (strcmp("/", cmdtext, true,1) == 0)
    {
       
        if(IsPlayerInRangeOfPoint(playerid,15.0,-1701.44042969,687.58593750,24.65380096))
        {
            if(open == 1)
            {
                SetDynamicObjectRot(sfent,0.00000000,270.0,90.0);
                print("TEST ONE ONE");
                open = 0;
            }
            else
            {
                SetDynamicObjectRot(sfent,0.00000000,0.00000000,90.00000000);
                open = 1;
                print("TEST ONE");
            }
        }
    }

I want it so when i use the slash command that it will open the gate if open = 0, otherwis close it. It wont close, so can you please help me solve this issue?
Reply


Messages In This Thread
My gate is not complying, help? - by kin - 17.06.2011, 06:04
Re: My gate is not complying, help? - by Max_Coldheart - 17.06.2011, 06:16
Re: My gate is not complying, help? - by kin - 17.06.2011, 06:18
Re: My gate is not complying, help? - by Toreno - 17.06.2011, 06:20
Re: My gate is not complying, help? - by Max_Coldheart - 17.06.2011, 06:33
Re: My gate is not complying, help? - by PrawkC - 17.06.2011, 09:25
Re: My gate is not complying, help? - by kin - 17.06.2011, 16:43

Forum Jump:


Users browsing this thread: 5 Guest(s)