@Jeffry:
Hab das nun so aber Jetze geht es garnicht
Code
		
					
			stock GetPosVorObj(obj, playerid, Float:dist) //©Jeffry
{
	new Float:Pos[3], Float:a, Float:x, Float:y, Float:z;
	GetDynamicObjectPos(obj, x, y, z);
	GetDynamicObjectRot(obj, Pos[0], Pos[1], Pos[2]);
	GetPlayerFacingAngle(playerid, a);
	x += (dist * floatsin(-a, degrees));
	y += (dist * floatcos(-a, degrees));
	new diff = (floatround(a + 180) % 360) - floatround(Pos[2]);
	if(IsPlayerInRangeOfPoint(playerid, dist, x, y, z))
	{
		if(diff < 15 && diff > -15)
		{
			return true;
		}
	}
	return false;
} 
		 
		
		
	 
			
									
		 
				




