26.05.2011, 14:46
Quote:
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); } }