[Ajuda] checar se tem veiculo perto
#4

pawn Code:
stock InRangeOfAnyVehicle(playerid)
{
    new Float:X, Float:Y, Float:Z, id = -1;
    for(new I = 0; I < MAX_VEHICLES; I++)
    {
        GetVehiclePos(I, X, Y, Z);
        if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z))
        {
            id = I;
            break;
        }
    }
    return id;
}
Reply


Messages In This Thread
checar se tem veiculo perto - by Saidmrn - 09.10.2014, 15:36
Re: checar se tem veiculo perto - by Saidmrn - 09.10.2014, 15:58
Re: checar se tem veiculo perto - by MultiKill - 09.10.2014, 16:01
Re: checar se tem veiculo perto - by connork - 09.10.2014, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)