[Help] PlayerToPoint
#1

Hey guys I have a problem, my server runs now on 0.3c but the playertopoint function doesn't work as well my streamed pickups doesn't appear, anyone that can help me =?

Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
	{
		new Float:oldposx, Float:oldposy, Float:oldposz;
		new Float:tempposx, Float:tempposy, Float:tempposz;
		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
		tempposx = (oldposx -x);
		tempposy = (oldposy -y);
		tempposz = (oldposz -z);
		//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
	}
	return 0;
}
Reply


Messages In This Thread
[Help] PlayerToPoint - by tony_fitto - 29.12.2010, 15:03
Re: [Help] PlayerToPoint - by xxmitsu - 29.12.2010, 15:31
Re: [Help] PlayerToPoint - by Steven82 - 29.12.2010, 17:04
Re: [Help] PlayerToPoint - by TheRob - 29.12.2010, 21:57
Re: [Help] PlayerToPoint - by tony_fitto - 30.12.2010, 02:50
Re: [Help] PlayerToPoint - by _rAped - 30.12.2010, 02:59
Re: [Help] PlayerToPoint - by tony_fitto - 30.12.2010, 13:56

Forum Jump:


Users browsing this thread: 3 Guest(s)