10.09.2010, 17:18
This could be the most simple...
pawn Код:
stock GetVehicleName(vehid)
{
new namestring[24];
if(GetVehicleModel(vehid) == 400) format(namestring,sizeof(namestring),"Landstalker");
if(GetVehicleModel(vehid) == 401) format(namestring,sizeof(namestring),"Bravura");
if(GetVehicleModel(vehid) == 402) format(namestring,sizeof(namestring),"Buffalo");
if(GetVehicleModel(vehid) == 610) format(namestring,sizeof(namestring),"Farm Trailer");
if(GetVehicleModel(vehid) == 611) format(namestring,sizeof(namestring),"Utility Trailer");
return namestring;
}