[HELP]How can i make a /enter dialog
#2

Hmmm, you want the dialog to come up when the player types /enter, or when he walks into the area?

If you did it already it should be pretty easy.

Right under
pawn Код:
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
Is were you create it, or at least thats were I would do it. If you've already done it then it should be a breeze. Same thing, just instead of /buy and setting stats. If the person clicks enter, then you do the following.

pawn Код:
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
                        SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
                        SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
                        GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
                        PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
                        PlayerInfo[playerid][pLocal] = i;
                        HouseEntered[playerid] = i;
Then the other option, cancel or w/e, would just return.
Reply


Messages In This Thread
[HELP]How can i make a /enter dialog - by Lilcuete - 12.11.2009, 00:10
Re: [HELP]How can i make a /enter dialog - by retart441 - 12.11.2009, 02:02
Re: [HELP]How can i make a /enter dialog - by Lilcuete - 12.11.2009, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)