12.11.2009, 02:02
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
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.
Then the other option, cancel or w/e, would just return.
If you did it already it should be pretty easy.
Right under
pawn Код:
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
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;