Jump to content
  • 0

Problema bariera


Spilter

Question

Nu se deschide bariera.Barierele sunt Ls-Sf si Ls-Lv merge doar cea din Sf-Ls restu nu se deschid

//------------------------------------Barrier--------------------------------------

if(strcmp(cmd, "/barrier", true) == 0)

      {

      if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184))

          {

          if(PlayerInfo[playerid][pPassport] == 1)

              {

              MoveDynamicObject(vama1,54.190098, -1529.675781, 5.085436, 2.5);

                MoveDynamicObject(vama2,52.703281, -1540.749634, 5.067452, 2.5);

              MoveDynamicObject(vama1,54.231167, -1529.687012, 9.320637, 3.5);

                SetTimer("GateClosse", 4000, 0);

            SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");

            return 1;

            }

            else

            {

            SendClientMessage(playerid, COLOR_1BLUE, "* You don't have an Passport, go in the City Hall and buy one.");

            return 1;

            }

        }

        else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053))

            {

            if(PlayerInfo[playerid][pPassport] == 1)

                {

                MoveDynamicObject(vama2,52.695782, -1540.765869, 9.255125, 3.5);

                SetTimer("GateClosse", 4000, 0);

                SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");

                return 1;

                }

                else

                {

                SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");

                return 1;

                }

        }

        else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624))

            {

            if(PlayerInfo[playerid][pPassport] == 1)

                {

                MoveDynamicObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5);

                SetTimer("GateClossse", 4000, 0);

                SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");

                return 1;

                }

                else

                {

                SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");

                return 1;

                }

        }

        else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999))

            {

            if(PlayerInfo[playerid][pPassport] == 1)

                {

                MoveDynamicObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5);

                SetTimer("GateClossse", 4000, 0);

                SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");

                return 1;

                }

                else

                {

                SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");

                return 1;

                }

            }

            else

            {

            SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier.");

            return 1;

            }

      }

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.