03.09.2013, 19:09
If you mean model of the vehicle (for example, infernus)
Else if you mean vehicle id (for example, 0 (first car was created))
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"
}
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"
}