[Ajuda] IsPlayerInRangeOfPoint
#6

Ah sim, vocк inverteu os parвmetros da funзгo IsPlayerInRangeOfPoint. Vocк colocou o range como ъltimo parвmetro, sendo que ele vem como o primeiro.

pawn Код:
CMD:comprararmas(playerid)
{
    if(PlayerInfo[playerid][pEquipa] == 1)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 3.0, 7798.0586,-2612.3733,12.6534) && !IsPlayerInRangeOfPoint(playerid, 3.0, -4180.0063,-6770.7710,11.9720) && !IsPlayerInRangeOfPoint(playerid, 3.0, 8076.1299,-7591.2690,15.3666) && !IsPlayerInRangeOfPoint(playerid, 3.0, 9511.4180,-8821.0498,28.4341))
        {
            SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб no local de compra !!");
            return 1;
        }
        else
        {
            ShowModelSelectionMenu(playerid, listaarmasct, "Comprar arma :", 0x4A5A6BBB, 0x88888899 , 0xFFFF00AA);
            return 1;
        }
    }
    if(PlayerInfo[playerid][pEquipa] == 2)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 3.0, 7703.8672,-2595.6262,24.1061) && !IsPlayerInRangeOfPoint(playerid, 3.0, -4424.7817,-6765.0215,16.1435) && !IsPlayerInRangeOfPoint(playerid, 3.0, 8170.6826,-7518.8247,15.3666) && !IsPlayerInRangeOfPoint(playerid, 3.0, 9459.8906,-8753.8584,30.2687))
        {
            SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб no local de compra !!");
            return 1;
        }
        else
        {
            ShowModelSelectionMenu(playerid, listaarmast, "Comprar arma :", 0xCE0005FF, 0x88888899 , 0xFFFF00AA);
        }
    }
    return 1;
}
Reply


Messages In This Thread
IsPlayerInRangeOfPoint - by Tugamars - 27.12.2013, 17:15
Re: IsPlayerInRangeOfPoint - by Dolby - 27.12.2013, 17:25
Re: IsPlayerInRangeOfPoint - by Tugamars - 27.12.2013, 17:40
Re: IsPlayerInRangeOfPoint - by Dolby - 27.12.2013, 17:46
Re: IsPlayerInRangeOfPoint - by Tugamars - 27.12.2013, 18:06
Re: IsPlayerInRangeOfPoint - by Dolby - 27.12.2013, 18:10
Re: IsPlayerInRangeOfPoint - by Tugamars - 27.12.2013, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)