House Info
#1

I want to make just like this, but I make something wrong. Please help me.



Код:
			for(new h = 0; h < sizeof(HouseInfo); h++)
			{
				if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
    			{
    			    if(strcmp(playername, HouseInfo[h][hOwner], true) == 0)
			        {
						new Level = HouseInfo[h][hLevel];
		    			if(HouseInfo[h][hLock] == 1 && strcmp(HouseInfo[h][hOwner],PlayerName(playerid), true ) != 0) return SendClientMessage(playerid, COLOR_WHITE,  "[HOUSE]: This house has been locked by the owner.");
		    			Pause(playerid);
	    				SetPlayerPos(playerid, HousesCoords[Level][0], HousesCoords[Level][1], HousesCoords[Level][2]);
	   					SetPlayerInterior(playerid, HousesLevels[Level][0]); SetPlayerVirtualWorld(playerid, HouseInfo[h][hWorld]);
	   					HouseEntered[playerid] = h;
					}
					else
					{
						GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
					}
				}
			}
Reply


Messages In This Thread
House Info - by Kayneftw - 15.06.2011, 13:58
Re: House Info - by Jochemd - 15.06.2011, 14:03
Re: House Info - by Kayneftw - 15.06.2011, 14:17
Re: House Info - by Kayneftw - 15.06.2011, 14:51
Re: House Info - by Kayneftw - 15.06.2011, 16:35
Re: House Info - by Kayneftw - 15.06.2011, 18:03
Re: House Info - by Ash. - 15.06.2011, 18:05
Re: House Info - by sim_sima - 15.06.2011, 18:34
Re: House Info - by Kayneftw - 15.06.2011, 19:41
Re: House Info - by Vince - 16.06.2011, 17:46

Forum Jump:


Users browsing this thread: 1 Guest(s)