03.03.2010, 16:12
Quote:
Originally Posted by SAWC™
Use the textdraw system used on the real clock FS from the sa-mp package.
|
Код:
//Top new Text:txtTimeDisp; // OnGameModeInit txtTimeDisp = TextDrawCreate(605.0,25.0,"00:00"); TextDrawUseBox(txtTimeDisp, 0); TextDrawFont(txtTimeDisp, 3); TextDrawSetShadow(txtTimeDisp,0); // no shadow TextDrawSetOutline(txtTimeDisp,2); // thickness 1 TextDrawBackgroundColor(txtTimeDisp,0x000000FF); TextDrawColor(txtTimeDisp,0xFFFFFFFF); TextDrawAlignment(txtTimeDisp,3); TextDrawLetterSize(txtTimeDisp,0.5,1.5); // OnPlayerSpawn TextDrawShowForPlayer(playerid,txtTimeDisp); // OnPlayerDeath TextDrawHideForPlayer(playerid,txtTimeDisp);