I need help with OnPlayerToPoint please
#8

Add this anywhere in your script (As long as it isnt in another function)
pawn Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float: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);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
I need help with OnPlayerToPoint please - by *ToM* - 20.04.2009, 17:15
Re: I need help with OnPlayerToPoint please - by Rks25 - 20.04.2009, 17:29
Re: I need help with OnPlayerToPoint please - by *ToM* - 20.04.2009, 17:35
Re: I need help with OnPlayerToPoint please - by Rks25 - 20.04.2009, 17:42
Re: I need help with OnPlayerToPoint please - by *ToM* - 20.04.2009, 17:46
Re: I need help with OnPlayerToPoint please - by pspleo - 20.04.2009, 17:50
Re: I need help with OnPlayerToPoint please - by *ToM* - 20.04.2009, 20:07
Re: I need help with OnPlayerToPoint please - by ICECOLDKILLAK8 - 20.04.2009, 20:10

Forum Jump:


Users browsing this thread: 2 Guest(s)