If Player Near a specific vehicle
#4

pawn Код:
new
    Float: X, Float: Y, Float: Z, model;
GetPlayerPos(playerid, X, Y, Z);

for(new v = 1; v < MAX_VEHICLES; v++)
{
    if((model = GetVehicleModel(i)))
    {
        if(model == [boat modelid])
        {
            if(GetVehicleDistanceFromPoint(i, X, Y, Z) < 5.0)
            {
                // you are near boat
            }
        }
    }
}
Reply


Messages In This Thread
If Player Near a specific vehicle - by EthanMason - 23.01.2014, 08:29
Re: If Player Near a specific vehicle - by Scottas - 23.01.2014, 08:33
Re : Re: If Player Near a specific vehicle - by EthanMason - 23.01.2014, 08:39
Re: If Player Near a specific vehicle - by Scottas - 23.01.2014, 08:48
Re: If Player Near a specific vehicle - by RajatPawar - 23.01.2014, 08:50

Forum Jump:


Users browsing this thread: 1 Guest(s)