/v buy
#2

If you mean model of the vehicle (for example, infernus)
pawn Код:
if( /* IT'S SALESCAR.. CHECK IT */ )
{
    new
        modelid
    ;
    If( IsPlayerInAnyVehicle( playerid ) ) modelid = GetVehicleModel( GetPlayerVehicleID( playerid ) );

    // Do what you want to do; the modelid is stored to "modelid"
}
Else if you mean vehicle id (for example, 0 (first car was created))
pawn Код:
if( /* IT'S SALESCAR.. CHECK IT */ )
{
    new
        vehicleid
    ;
    If( IsPlayerInAnyVehicle( playerid ) ) vehicleid= GetPlayerVehicleID( playerid );

    // Do what you want to do; the vehicleid is stored to "vehicleid"
}
Reply


Messages In This Thread
/v buy - by Don_Cage - 03.09.2013, 19:00
Re: /v buy - by Konstantinos - 03.09.2013, 19:09
Re: /v buy - by Don_Cage - 03.09.2013, 19:38
Re: /v buy - by Pottus - 03.09.2013, 19:41
Re: /v buy - by Don_Cage - 03.09.2013, 19:44
Re: /v buy - by Pottus - 03.09.2013, 19:55
Re: /v buy - by Don_Cage - 03.09.2013, 20:06
Re: /v buy - by Pottus - 03.09.2013, 20:22
Re: /v buy - by Don_Cage - 04.09.2013, 11:35

Forum Jump:


Users browsing this thread: 1 Guest(s)