Near House
#1

I want to send those two messages when a player near the houses and I tried this it didn't work out for me.
Код:
forward NearHouse(playerid, targetid, houseid);
public NearHouse(playerid, targetid, houseid)
{
	if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
		for(new i = 0; i < sizeof(HouseInfo); i++)
		{
			if(IsPlayerInRangeOfPoint(playerid, 4.0, HouseInfo[houseid][ExitX], HouseInfo[houseid][ExitY], HouseInfo[houseid][ExitZ]) && GetWorld(targetid) == GetWorld(playerid))
			{
					sendMessage(playerid, COLOR_DARKGREEN, "%s, %s, San Andreas", ReturnLocationEx(i));
					SCM(playerid, COLOR_WHITE, "Available commands: /enter, /ds(hout), /ddo, /knock");

			}
		}
	}
	return 1;
}
Reply


Messages In This Thread
Near House - by RudeWorld - 14.02.2019, 14:17
Re: Near House - by GeorgeLimit - 14.02.2019, 14:40
Re: Near House - by d3Pedro - 14.02.2019, 14:41
Re: Near House - by RudeWorld - 14.02.2019, 15:05
Re: Near House - by d3Pedro - 14.02.2019, 15:16
Re: Near House - by Pottus - 14.02.2019, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)