public NearByMessage- help please
#6

Quote:
Originally Posted by Infinity90
Посмотреть сообщение
You have
pawn Код:
forward NearByMessage(playerid, color, string[], Float: range);
Show us your value of IsPlayerSpawn, I compiled it with no errors (except IsPlayerSpawn).
here is where my isplayer is at

Код:
new IsPlayerSpawned[MAX_PLAYERS];
Код:
public NearByMessage(playerid, color, string[], Float: range)
{
	new Float: PlayerX, Float: PlayerY, Float: PlayerZ;
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) && IsPlayerSpawned(i))
	   	{
	   		GetPlayerPos(playerid, PlayerX, PlayerY, PlayerZ);
	   		if(IsPlayerInRangeOfPoint(i, range, PlayerX, PlayerY, PlayerZ))
	   		{
			    if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
	    	    {
	    			SendClientMessage(i, color, string);
	    		}
	    	}
		}
	}
}
Reply


Messages In This Thread
public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 11:42
Re: public NearByMessage- help please - by Jakku - 21.01.2013, 11:49
Re: public NearByMessage- help please - by DiGiTaL_AnGeL - 21.01.2013, 11:53
Re: public NearByMessage- help please - by Infinity90 - 21.01.2013, 11:54
Re: public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 11:59
Re: public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 12:02
Re: public NearByMessage- help please - by Jakku - 21.01.2013, 12:17
Re: public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 12:18
Re: public NearByMessage- help please - by Infinity90 - 21.01.2013, 12:19
Re: public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 12:24

Forum Jump:


Users browsing this thread: 4 Guest(s)