PlayerToPoint
#1

Код:
forward PlayertoPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
Код:
public PlayertoPointFloat:radi, playerid, Float:x, Float:y, Float:z)
{
	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);
	if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
	{ return true; }
	return false;
}
If the player is in point then it returns as wrong command. I mean OnPlayerCommandPerformed or smth and it says wrong command. But it still does what the command needs to do. Problem is in this public
Reply


Messages In This Thread
PlayerToPoint - by NewbBeginner - 12.02.2011, 10:40
Re: PlayerToPoint - by Cypress - 12.02.2011, 10:58
Re: PlayerToPoint - by Hiddos - 12.02.2011, 10:59
Re: PlayerToPoint - by Mean - 12.02.2011, 11:02
Re: PlayerToPoint - by NewbBeginner - 12.02.2011, 15:51
Re: PlayerToPoint - by Mean - 12.02.2011, 15:54
Re: PlayerToPoint - by NewbBeginner - 12.02.2011, 15:57
Re: PlayerToPoint - by Mean - 12.02.2011, 15:59
Re: PlayerToPoint - by NewbBeginner - 12.02.2011, 16:29
Re: PlayerToPoint - by Hiddos - 12.02.2011, 16:31

Forum Jump:


Users browsing this thread: 3 Guest(s)