[HELP] locked
#1

Hello how can I add here if is house locked then when player stand near house ppickup then it says that is house not locked then player can enter in house

pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(PlayerToPoint(4.0,playerid,HouseInfo[h][henterX],HouseInfo[h][henterY],HouseInfo[h][henterZ]))
        {
            if(HouseInfo[h][hHaveOwner] == 1)
            {
                new message1[256];
                format(message1,sizeof(message1),"{FFFFFF}For enter in {0ed400}House {FFFFFF}click on {0ed400}Enter {FFFFFF}or  Exit to exit from dialog!");
                ShowPlayerDialog(playerid,243,DIALOG_STYLE_MSGBOX,"{0ed400}House Enter",message1,"Enter","Exit");
            }
        }
    }
Reply
#2

Do you actually have a var that is used to save if it is locked or not? If so, you simply need to do a check to see if it is locked or not, and then alter the dialog accordingly, or show a text message, whichever you're after.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)