Jump to content
  • 0

PlayerToPoint?


BlueSkiLLz

Question

Am facut un dialog in care foloseste PlayerToPoint.

[pawn]if(strcmp(cmd, "/takeguns", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)

            {

                if (PlayerToPoint(3, playerid, 1208.9657,-27.8700,1000.9531))

                {

                    ShowPlayerDialog(playerid,68,DIALOG_STYLE_LIST,"Take Guns","Silenced 9mm\nDesert Eagle\nMP5\nAK-47\nM4\nCombat Shotgun\nViata","Alege","Anuleaza");

                }

            }

            else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)

            {

                if (PlayerToPoint(3, playerid, 438.0905,1411.5494,1084.3047))

                {

                      ShowPlayerDialog(playerid,77,DIALOG_STYLE_LIST,"Take Guns","Silenced 9mm\nDesert Eagle\nMP5\nAK-47\nM4\nCombat Shotgun\nViata","Alege","Anuleaza");

                }

            }

            else

            {

                SendClientMessage(playerid, COLOR_GRAD2, "Nu esti langa checkpoint-ul cu /takeguns!");

                return 1;

                }

        }

        return 1;

    }  [/pawn]

Primul imi merge in aceea locatia dar al doilea nu imi merge, nu apare nimic.

De ce?

PS: E facut pentru toate factiunele , dar merge doar prima factiune /takeguns

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.