Get player pos after seting it
#2

anyone know what is the problem ?
Код:
GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance) {

	new Float:a;
	
	GetPlayerPos(playerid, x, y, a);
	GetPlayerFacingAngle(playerid, a);
	
	if (GetPlayerVehicleID(playerid)) {
	
	    GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
	    
	}
	
	x += (distance * floatsin(-a, degrees));
	y += (distance * floatcos(-a, degrees));
	
}
Reply


Messages In This Thread
Get player pos after seting it - by ignas1125 - 30.10.2014, 21:48
Re: Get player pos after seting it - by ignas1125 - 30.10.2014, 22:44
Re: Get player pos after seting it - by BornHuman - 30.10.2014, 23:23
Re: Get player pos after seting it - by Stinged - 31.10.2014, 04:45
Re: Get player pos after seting it - by Pottus - 31.10.2014, 04:49

Forum Jump:


Users browsing this thread: 6 Guest(s)