[Ajuda] Ajuda comando /sequestrar
#5

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);
        //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;
        }
    }
    return 0;
}
Reply


Messages In This Thread
Ajuda comando /sequestrar - by iStronG - 02.05.2013, 12:13
Re: Ajuda comando /sequestrar - by Mercenario - 02.05.2013, 12:58
Re: Ajuda comando /sequestrar - by iStronG - 02.05.2013, 13:08
Re: Ajuda comando /sequestrar - by Mercenario - 02.05.2013, 13:10
Re: Ajuda comando /sequestrar - by iStronG - 02.05.2013, 13:13
Re: Ajuda comando /sequestrar - by Mercenario - 02.05.2013, 13:38
Re: Ajuda comando /sequestrar - by iStronG - 02.05.2013, 13:44
Re: Ajuda comando /sequestrar - by Mercenario - 02.05.2013, 14:01
Re: Ajuda comando /sequestrar - by iStronG - 02.05.2013, 16:58

Forum Jump:


Users browsing this thread: 3 Guest(s)