Get vehicle's name which has entered in
#3

I think that this should solve your problem

pawn Код:
stock GetVehicleNameOfModelFromVehicleID(vehicleid)
{
    new modelname[50];
    format(modelname, 50, "%s",VehicleNames[GetVehicleModel(vehicleid)])
    return modelname;
}

So, you can use like that:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new string[256];
    format(string, sizeof(string), "You are in a %s",GetVehicleNameOfModelFromVehicleID(vehicleid));//It will shows the name of the vehicle model
    return 1;
}

I hope that i have helped
Reply


Messages In This Thread
Get vehicle's name which has entered in - by blackwave - 21.01.2011, 00:26
Re: Get vehicle's name which has entered in - by Anthonyx3' - 21.01.2011, 00:37
Re: Get vehicle's name which has entered in - by rjjj - 21.01.2011, 00:42
Re: Get vehicle's name which has entered in - by blackwave - 21.01.2011, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)