HELP ME PLSS!
#5

Код:
if(newkeys == KEY_SECONDARY_ATTACK)
    {
		if(IsPlayerConnected(playerid))
		{
			for(new i = 0; i < sizeof(HouseInfo); i++)
			{
				if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
				{
					//printf("Found House :%d",i);
					if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
					{
						SetPlayerInterior(playerid,HouseInfo[i][hInt]);
						SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
						GameTextForPlayer(playerid, "~w~dobrodosao doma", 5000, 1);
						PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
						PlayerInfo[playerid][pHouseEntered] = 1;
						PlayerInfo[playerid][pLocal] = i;
						PlayerInfo[playerid][pVW] = i;
						SetPlayerVirtualWorld(playerid,i);
					}
					else
					{
						GameTextForPlayer(playerid, "~r~zakljucano", 5000, 1);
					}
				}
			}
		}
	}
this is command to enter and exit from all houses BUT theres problem I can EXIT form any house(actualy I can exit one time and thats when I buy house after that I can only enter :S)
Reply


Messages In This Thread
/exit - by Gangasta300 - 11.04.2011, 15:53
Re: HELP ME PLSS! - by Ben7544 - 11.04.2011, 16:24
Re: HELP ME PLSS! - by Jochemd - 11.04.2011, 16:26
Re: HELP ME PLSS! - by Ben7544 - 11.04.2011, 16:44
Re: HELP ME PLSS! - by Gangasta300 - 11.04.2011, 16:45
Re: HELP ME PLSS! - by Gangasta300 - 11.04.2011, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)