new Text:ftd; 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);
new Text:ftd;
ftd = TextDrawCreate(0.0, 434.0,"www.wwg.x10.mx");
TextDrawFont(ftd,3);
TextDrawLetterSize(ftd,10,10);
TextDrawColor(ftd,0x0F00FF);
TextDrawSetShadow(ftd,1);
TextDrawSetOutline(ftd,1);
TextDrawBackgroundColor(ftd,0x000FF);
TextDrawUseBox(ftd,0);
To show and hide the textdraw use the functions TextDrawShowForPlayer, TextDrawHideForPlayer, TextDrawShowForAll, TextDrawHideForAll. Hope it helped. ![]() |
#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;
}