[Ajuda] Pickups
#2

Cole isso no final de seu gm
pawn Код:
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    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 true;
    }
    return false;
}
Reply


Messages In This Thread
Pickups - by Dacuel - 13.12.2012, 12:03
Re: Pickups - by Schocc - 13.12.2012, 12:09
Re: Pickups - by sh0wtime - 13.12.2012, 12:10
Re: Pickups - by smiiir - 13.12.2012, 12:10
Re: Pickups - by Dacuel - 13.12.2012, 12:11
Re: Pickups - by Nill.Oliveira - 13.12.2012, 12:12
Re: Pickups - by ViniBorn - 13.12.2012, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)