SA-MP Forums Archive
FindZ of a Position - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: FindZ of a Position (/showthread.php?tid=372467)



FindZ of a Position - dalkgamler - 26.08.2012

Is there any fast Way to Check THe z coordinates of xy Position i will Check it all 0.5 seconds


Re: FindZ of a Position - Akira297 - 26.08.2012

ZCMD :
Код:
CMD:mycords(playerid, params[])
{
	new myString[128], Float:a;
	GetPlayerFacingAngle(playerid, a);

	format(myString, sizeof(myString), "Your angle is: %0.2f", a);
	SendClientMessageEx(playerid, 0xFFFFFFFF, myString);

	new myString2[128], Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);

	format(myString2, sizeof(myString), "Your position is: %f, %f, %f", x, y, z);
	SendClientMessageEx(playerid, 0xFFFFFFFF, myString2);
	return 1;
}



AW: FindZ of a Position - dalkgamler - 26.08.2012

Not of a Player i Mean a streamed in Position like ic you are 0,0,0 i Wanja know THe z Position of 0,10,?