[Pedido] comando /destrancar
#5

Quote:
Originally Posted by Los
Посмотреть сообщение
Fiz a base, aprimore ao seu gosto.

pawn Код:
YCMD:destrancar ( playerid, params[ ], help[ ] )
{
    for ( new c = 0; c < MAX_VEHICLES; c++ )
    {
        if ( IsVehicleInRangeOfPlayer ( playerid, c ) )
        {
            new
                int_veh_params[ 7 ] ;

            GetVehicleParamsEx(c, int_veh_params[ 0 ], int_veh_params[ 1 ], int_veh_params[ 2 ], int_veh_params[ 3 ], int_veh_params[ 4 ], int_veh_params[ 5 ], int_veh_params[ 6 ] );
            SetVehicleParamsEx(c, int_veh_params[ 0 ], int_veh_params[ 1 ], int_veh_params[ 2 ], false, int_veh_params[ 4 ], int_veh_params[ 5 ], int_veh_params[ 6 ] );
        }
    }
    return 1;
}


IsVehicleInRangeOfPlayer ( playerid, vehicleid )
{
    new
        Float: fl_veh_pos[ 3 ] ;

    GetVehiclePos ( vehicleid, fl_veh_pos[ 0 ], fl_veh_pos[ 1 ], fl_veh_pos[ 2 ] ) ;

    if ( IsPlayerInRangeOfPoint ( playerid, 20, fl_veh_pos[ 0 ], fl_veh_pos[ 1 ], fl_veh_pos[ 2 ] ) )
        return true ;

    else
        return false;
}
funfo aki vlw
Reply


Messages In This Thread
comando /destrancar - by XStylerX - 23.12.2012, 19:35
Respuesta: comando /destrancar - by Pedro Pawno - 23.12.2012, 20:06
Re: Respuesta: comando /destrancar - by XStylerX - 23.12.2012, 21:02
Re: comando /destrancar - by Lуs - 23.12.2012, 21:33
Re: comando /destrancar - by XStylerX - 23.12.2012, 22:46

Forum Jump:


Users browsing this thread: 1 Guest(s)