15.09.2011, 12:36
Example script:
pawn Код:
#include <a_samp>
new Text:ftd;
public OnGameModeInit()
{
ftd = TextDrawCreate(0.0, 434.0,"Sample text here");
TextDrawFont(ftd,3);
TextDrawLetterSize(ftd,10,10);
TextDrawColor(ftd,0x0F00FF);
TextDrawSetShadow(ftd,1);
TextDrawSetOutline(ftd,1);
TextDrawBackgroundColor(ftd,0x000FF);
TextDrawUseBox(ftd,0);
return 1;
}
public OnGameModeExit()
{
TextDrawDestroy(ftd);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, ftd);
return 1;
}