In welcher Einheit gibt GetPlayerDistanceFromPoint die Distanz wieder?
Diesen Wert spukt mir die Funktion aus: 1317652748
Würde gerne die Einheit von IsPlayerInRangeOfPoint haben.
mfg Ronny95
public Spielertimer(i)
{
if(GetPVarInt(i,"Handystatus")==1)
{
new Float:distance,distancestring[20];
TextDrawHideForPlayer(i, Empfangsbalken1);
TextDrawHideForPlayer(i, Empfangsbalken2);
TextDrawHideForPlayer(i, Empfangsbalken3);
if(GetPlayerDistance(i)<50&&GetPlayerDistance(i)>20)
{
TextDrawShowForPlayer(i, Empfangsbalken1);
TextDrawHideForPlayer(i, Empfangsbalken2);
TextDrawHideForPlayer(i, Empfangsbalken3);
}
if(GetPlayerDistance(i)<20&&GetPlayerDistance(i)>10)
{
TextDrawShowForPlayer(i, Empfangsbalken1);
TextDrawShowForPlayer(i, Empfangsbalken2);
TextDrawHideForPlayer(i, Empfangsbalken3);
}
if(GetPlayerDistance(i)<10)
{
TextDrawShowForPlayer(i, Empfangsbalken1);
TextDrawShowForPlayer(i, Empfangsbalken2);
TextDrawShowForPlayer(i, Empfangsbalken3);
}
distance=GetPlayerDistance(i);
format(distancestring,sizeof(distancestring),"%d",distance);
SendClientMessage(i,ROT,distancestring);
}
return 1;
}
stock GetPlayerDistance(playerid)
{
new Float:distance;
distance=GetPlayerDistanceFromPoint(playerid,1132.9893,-1449.1814,15.7969);
return _:distance;
}