[Include] Streamer Position Compensation
#7

Код:
static Float:TP_GetDistanceFromAwaiting(playerid)
{
	new Float:pX, Float:pY, Float:pZ;
	GetPlayerPos(playerid, pX, pY, pZ);
	return (floatsqroot(floatpower(pX - TP_AwaitingPos[playerid][0], 2.0) + floatpower(pY - TP_AwaitingPos[playerid][1], 2.0) + floatpower(pZ - TP_AwaitingPos[playerid][2], 2.0)));
}
This can be replaced by VectorSize (https://sampwiki.blast.hk/wiki/VectorSize) and even by GetPlayerDistanceFromPoint.
Reply


Messages In This Thread
Streamer Position Compensation - by Crayder - 24.02.2016, 17:28
Re: Streamer Position Compensation - by SecretBoss - 24.02.2016, 17:38
Re: Streamer Position Compensation - by AliDollar - 24.02.2016, 17:51
Re: Streamer Position Compensation - by Max_Andolini - 24.02.2016, 18:06
Re: Streamer Position Compensation - by DRIFT_HUNTER - 24.02.2016, 18:16
Re: Streamer Position Compensation - by Crayder - 24.02.2016, 19:45
Re: Streamer Position Compensation - by TheMallard - 28.02.2016, 11:19
Re: Streamer Position Compensation - by Crayder - 28.02.2016, 16:06
Re: Streamer Position Compensation - by Stanford - 29.02.2016, 15:55
Re: Streamer Position Compensation - by HydraHumza - 01.03.2016, 06:53

Forum Jump:


Users browsing this thread: 1 Guest(s)