Код:
else if( dialogid == DIALOG_HOUSEM )
{
if( !response )
{
return 1;
}
if( listitem == 0)
{
if(IsAt(playerid,IsAt_HazElott) != NINCS)
{
for(new i = 0; i < hazak; i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
if(HouseInfo[i][hLock] == 0)
{
new HazBelso = HouseInfo[i][hBelso];
SetPlayerInterior(playerid,IntInfo[HazBelso][iNumber]);
SetPlayerPos(playerid,IntInfo[HazBelso][iExitX],IntInfo[HazBelso][iExitY],IntInfo[HazBelso][iExitZ]);
SetPlayerVirtualWorld(playerid, i);
GameTextForPlayer(playerid, "~w~Ьdv itt!", 5000, 1);
PlayerInfo[playerid][pLocal] = i;
Hazbanvan[playerid] = 1;
new zseka = Fbios[playerid];
SendFormatMessage(zseka, Pink, "PDA Ьzenet: %s bement a %d szбmъ hбzba.", PlayerName(playerid), i)
SetPlayerMarkerForPlayer(zseka, playerid, COLOR_INVISIBLE);
return 1;
}
}
}
}