Vehicle radius
#5

Are you looking for something like this?
pawn Код:
CMD:gunstorage(playerid, params[])
{
    new vehicleid
    if(ssanf(params, "d", vehicleid))
        return 1;

    if(GetVehicleModel(vehicleid) != 519)
        return 1;

    new Float:Pos[3];
    GetVehiclePos(vehicleid, Pos[0], Pos[1], Pos[2]);
    if(IsPlayerInRangeOfPoint(playerid, 5.0, Pos[0], Pos[1], Pos[2]))
    {
        // do something here
    }
    return 1;
}
This is an example where you have to enter vehicle's ID in the command. You could run a loop to find out is player standing near any shamal.
Reply


Messages In This Thread
Vehicle radius - by Shazwan - 23.05.2015, 09:27
Re: Vehicle radius - by Alpay0098 - 23.05.2015, 09:33
Re: Vehicle radius - by Shazwan - 23.05.2015, 09:41
Re: Vehicle radius - by Alpay0098 - 23.05.2015, 09:47
Re: Vehicle radius - by dominik523 - 23.05.2015, 09:48
Re: Vehicle radius - by Shazwan - 23.05.2015, 09:51

Forum Jump:


Users browsing this thread: 1 Guest(s)