new PlayerText:Textdraw0[MAX_PLAYERS];public OnPlayerConnect(playerid){Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 492.073242, 105.916679, \"usebox\");PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 27.912942);PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 159.671325, 0.000000);PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102);PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);PlayerTextDrawFont(playerid, Textdraw0[playerid], 0); TextDrawShowForPlayer(playerid,Textdraw0[playerid]);return 1;}
Textdraw0[playerid] = TextDrawCreate(492.073242, 105.916679, \"usebox\"); TextDrawBackgroundColor(Textdraw0[playerid], 0); TextDrawFont(Textdraw0[playerid], 4); TextDrawLetterSize(Textdraw0[playerid], 0.000000, 27.912942); TextDrawColor(Textdraw0[playerid], -1); TextDrawSetOutline(Textdraw0[playerid], 0); TextDrawSetProportional(Textdraw0[playerid], 1); TextDrawSetShadow(Textdraw0[playerid], 1); TextDrawUseBox(Textdraw0[playerid], 1); TextDrawBoxColor(Textdraw0[playerid], 102); TextDrawTextSize(Textdraw0[playerid], 159.671325, 0.000000); TextDrawSetSelectable(Textdraw0[playerid], 0);
new Text:Textdraw0[MAX_PLAYERS];
TextDrawShowForPlayer(playerid,Textdraw0[playerid]);
TextDrawFont(Textdraw20[playerid], 0);
new t_HUD[MAX_PLAYERS];
t_HUD[playerid] = SetTimerEx(\"HUDtimer\", 1000, 1, \"i\", playerid);
public HUDtimer(playerid){TextDrawShowForPlayer(playerid, Textdraw20[playerid]);}
#include <a_samp>#include <zcmd>#include <fixchars>new PlayerText:Textdraw0[MAX_PLAYERS];public OnPlayerConnect(playerid){Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 492.073242, 105.916679, \"asd\");PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 27.912942);PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 159.671325, 0.000000);PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102);PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);PlayerTextDrawFont(playerid, Textdraw0[playerid], 0);TextDrawShowForPlayer(playerid, Textdraw0[playerid]);return 1;}
TextDrawShowForPlayer Helyett:PlayerTextDrawShow
#include <a_samp>#include <fixchars>#include <zcmd>new PlayerText:Textdraw0[MAX_PLAYERS];new t_HUD[MAX_PLAYERS];new hud[MAX_PLAYERS];forward HUDtimer(playerid);public OnPlayerConnect(playerid){ Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 492.073242, 105.916679, \"asd\"); PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 27.912942); PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 159.671325, 0.000000); PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1); PlayerTextDrawColor(playerid, Textdraw0[playerid], 0); PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true); PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102); PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0); PlayerTextDrawFont(playerid, Textdraw0[playerid], 0);t_HUD[playerid] = SetTimerEx(\"HUDtimer\", 1000, 1, \"i\", playerid);return 1;}public HUDtimer(playerid){if(!hud[playerid]){PlayerTextDrawShow(playerid, Textdraw0[playerid]);}}