[Tutorial] Criando Portao Basico com uso de KEY
#2

Quote:
Originally Posted by MonFiTy
Посмотреть сообщение
acaso quem nao tenha a Stock PlayerToPoint quase imposivel '-' esta aki

pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
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;
}
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply


Messages In This Thread
Criando Portao Basico com uso de KEY - by MonFiTy - 05.06.2013, 04:40
Re: Criando Portao Basico com uso de KEY - by Gii - 05.06.2013, 05:03
Re: Criando Portao Basico com uso de KEY - by MonFiTy - 05.06.2013, 21:24
Re: Criando Portao Basico com uso de KEY - by AlucardSnow - 05.06.2013, 21:48
Re: Criando Portao Basico com uso de KEY - by MonFiTy - 05.06.2013, 21:56
Re: Criando Portao Basico com uso de KEY - by AlucardSnow - 05.06.2013, 22:26
Re: Criando Portao Basico com uso de KEY - by Don_Speed - 05.06.2013, 22:33
Re: Criando Portao Basico com uso de KEY - by Schocc - 10.06.2013, 04:22
Re: Criando Portao Basico com uso de KEY - by BielCOP - 10.06.2013, 18:13
Re: Criando Portao Basico com uso de KEY - by smiiir - 10.06.2013, 20:25

Forum Jump:


Users browsing this thread: 2 Guest(s)