[DUV]Como Criar Um CMD /entrar Pra Dentro de Um Interior
#4

Quote:
Originally Posted by gabrielbnv
Посмотреть сообщение
Quando Eu Boto PLayerToPoint da Erro Function Is Not Implemented =/
Desculpe, eu nгo sabia que o seu gamemode nгo tinha essa funзгo =/


Hб 2 jeitos de resolver isso :


1 - Troque as palavras PlayerToPoint por IsPlayerInRangeOfPoint.

ou

2 - Coloque no Final do seu gamemode:

pawn Код:
stock 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

Forum Jump:


Users browsing this thread: 1 Guest(s)