trying to do IsPlayerOnVehicle
#8

Quote:
Originally Posted by GameOvr
View Post
You have to use MapAndreas include by Ryder to get this in the working state..
EDIT:I didnt test it or compile, if it's not working tell me
I changed your code because you had some mistakes. But, no help

pawn Code:
stock IsPlayerOnVehicle(playerid) // By GameOvr, just made for you :D
{
    if(IsPlayerInAnyVehicle(playerid)) return INVALID_VEHICLE_ID;

    new Float:x, Float:y, Float:z, Float:px, Float:py, Float:pz, Float:Zval;
    GetPlayerPos(playerid, px, py, pz);

    foreach(new i : Vehicle)
    {
        GetVehiclePos(i, x, y, z);
        if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z) && jumping[playerid] == 0)
        {
            MapAndreas_FindZ_For2DCoord(px, py, Zval);
            if(pz > Zval) return i;
        }      
    }

    return INVALID_VEHICLE_ID;
}
Reply


Messages In This Thread
trying to do IsPlayerOnVehicle - by ChampDotChamp - 27.05.2020, 21:26
Re: trying to do IsPlayerOnVehicle - by xRadical3 - 27.05.2020, 22:00
Re: trying to do IsPlayerOnVehicle - by ChampDotChamp - 27.05.2020, 22:23
Re: trying to do IsPlayerOnVehicle - by Runn3R - 27.05.2020, 22:32
Re: trying to do IsPlayerOnVehicle - by xRadical3 - 27.05.2020, 22:55
Re: trying to do IsPlayerOnVehicle - by ChampDotChamp - 28.05.2020, 08:58
Re: trying to do IsPlayerOnVehicle - by GameOvr - 28.05.2020, 10:01
Re: trying to do IsPlayerOnVehicle - by ChampDotChamp - 28.05.2020, 13:39

Forum Jump:


Users browsing this thread: 2 Guest(s)