26.08.2009, 19:02
(
Последний раз редактировалось Homerman; 24.11.2011 в 15:48.
Причина: New version. Again.
)
Closing this.
Originally Posted by [K4L
Jake ]
I'm just going to download it to help the cashflow but good job! |
how to show "FUEL: %" in textdraw plz I got textdraw with a box,theres problem only in putting it in this script:
// On top of script: new Text:Textdraw0; // In OnGameModeInit prefferably, we procced to create our textdraws: Textdraw0 = TextDrawCreate(478.000000, 375.000000, "FUEL: %"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 1); TextDrawLetterSize(Textdraw0, 0.370000, 1.09999; TextDrawColor(Textdraw0, -16776961); TextDrawSetOutline(Textdraw0, 1); TextDrawSetProportional(Textdraw0, 1); TextDrawUseBox(Textdraw0, 1); TextDrawBoxColor(Textdraw0, 96); TextDrawTextSize(Textdraw0, 613.000000, 23.000000); |
if(IsPlayerInAnyVehicle) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { TextDrawShowForPlayer(playerid, Textdraw0); } }
Try to put this in OnPlayerConnect callback.
Код:
if(IsPlayerInAnyVehicle) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { TextDrawShowForPlayer(playerid, Textdraw0); } } |