Problem!!
#1

Hello, i have a problem with my gate here.. i want only FakeLicensers and admin 1400 to be able to open it but its only the 1400 admin that is able to do it, what have i done wrong?

pawn Код:
if (IsAFakeLicensers(playerid) || PlayerInfo[playerid][pAdmin] >= 1400)
        {
            if(IsPlayerInRangeOfPoint(playerid, 6,2119.5,-2275.6999511719,19.200000762939))
            {
                if(arms2 == 0)
                {
                    MoveDynamicObject(armsdealer2, 2119.5,-2275.6999511719,16.799999237061, 1.5);
                    SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer's Door is Open, Please Close it!");
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s takes his/her remote control and opens the Door.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    arms2 = 1;
                }
                else
                {
                    MoveDynamicObject(armsdealer2, 2119.5,-2275.6999511719,19.200000762939, 3.0000);
                    SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer's Door is Closed, Thank You!");
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s takes his/her remote control and closes the Door.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    arms2 = 0;
                }
            }
and its the same problem with this gate

pawn Код:
if (IsAFakeLicensers(playerid) || PlayerInfo[playerid][pAdmin] >= 1400)
        {
            if(IsPlayerInRangeOfPoint(playerid, 6,2178.5,-2255.099609375,14.699999809265))
            {
                if(arms1 == 0)
                {
                    MoveDynamicObject(armsdealer1, 2178.5,-2255.099609375,10.699999809265, 1.5);
                    SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer Gate is open");
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s takes his/her remote control and opens Gate.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    arms1 = 1;
                }
                else
                {
                    MoveDynamicObject(armsdealer1, 2178.5,-2255.099609375,14.699999809265, 3.0000);
                    SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer Gate is closed");
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s takes his/her remote control and closes Gate.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    arms1 = 0;
                }
            }
        }
Reply


Messages In This Thread
Problem!! - by Shayaziz - 27.08.2012, 17:12
Re: Problem!! - by Shayaziz - 27.08.2012, 17:45
Re: Problem!! - by Shayaziz - 27.08.2012, 20:26
Re: Problem!! - by HuSs3n - 27.08.2012, 20:29
Re: Problem!! - by Shayaziz - 27.08.2012, 20:34
Re: Problem!! - by HuSs3n - 27.08.2012, 21:03
Re: Problem!! - by TaLhA XIV - 27.08.2012, 21:41
Re: Problem!! - by Shayaziz - 28.08.2012, 17:28
Re: Problem!! - by Shayaziz - 28.08.2012, 19:29
Re: Problem!! - by Shayaziz - 29.08.2012, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)