[Help] Show vehicle model when player enters vehicle.
#3

Use TextDrawSetString.

pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
    new model = GetVehicleModel( vehicleid );
    if (model == 520) TextDrawSetString(car, "Hydra");
    return true;
}
Only takes 1 TD, also I'd like to point out you can make an array with all vehicles and do this in just a few lines of code.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)