GF oder was davon übrig ist^^
Edit: hab so
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(TOGGLE_DEBUG_MODE)
{
printf(" //DEBUG: CALL PlayerToPoint(%f, %i, %f, %f, %f)", radi, playerid, x, y, z);
}
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
else if(PlayerToPoint(5,playerid,1183.5359,-1746.5177,13.5314))// x,y,z die coords vom gesezten cp
{
DisablePlayerCheckpoint(playerid);
}