Jump to content
  • 0

Problema poarta


gabydemocray

Question

Deci se ridica poarta sus da nu mai coboara jos:

uitati cum am comanda:

[pawn]//----------------------------------[bE-Gate]-----------------------------------------

    if(strcmp(cmdtext, "/poarta", true) == 0)

{

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

    {

    if(PlayerToPoint(10,playerid,785.38690186,-1152.45471191,25.34807777))

    {

        GetPlayerName(playerid, sendername, sizeof(sendername));

                MoveObject(BPD,785.57965088,-1151.99633789,36.90230560,5.0);

                SetTimerEx("BPDclose",5000,false,"d",playerid);

                format(string, sizeof(string), "* %s takes out a remote control and opens the gate *", sendername);

                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

            }

            else

            {

            SendClientMessage(playerid, COLOR_WHITE, " You are not near the door !");

            }

        }

       

    }[/pawn]

[pawn]public BPDclose()

{

    MoveObject(begate,785.38690186,-1152.45471191,25.34807777,5.0);

}[/pawn]

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.