21.12.2013, 19:12
(
Last edited by iDuckling; 22/12/2013 at 10:04 PM.
)
Hello, I need help doing something. I wanna show the vehicle model when a player enters the vehicle. But for the way I know, I'd have to do 212 textdraws lol. So... is there any other way to do it?
An example:
An example:
pawn Code:
new Text:car0;
public OnGameModeInit()
{
car0 = TextDrawCreate(497.000000, 270.000000, "sup?");
TextDrawBackgroundColor(car0, 0x00000044);
TextDrawFont(car0, 5);
TextDrawLetterSize(car0, 0.500000, 1.000000);
TextDrawColor(car0, -1);
TextDrawSetOutline(car0, 0);
TextDrawSetProportional(car0, 1);
TextDrawSetShadow(car0, 1);
TextDrawUseBox(car0, 1);
TextDrawBoxColor(car0, 0x00000044);
TextDrawTextSize(car0, 111.000000, 92.000000);
TextDrawSetPreviewModel(car0, 400);
TextDrawSetPreviewRot(car0, -16.000000, 0.000000, -55.000000, 1.000000);
TextDrawSetSelectable(car0, 0);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new model = GetVehicleModel( vehicleid );
if (model == 400)
{
TextDrawShowForPlayer(playerid, car0);
}
return 1;
}