new
Text:ErrorText[100];
public OnPlayerConnect(playerid)
{
// Rossz parancs td
ErrorText[playerid] = TextDrawCreate(153.000000,379.000000,\" -- \");
TextDrawAlignment(ErrorText[playerid], 0);
TextDrawBackgroundColor(ErrorText[playerid], 0x000000ff);
TextDrawFont(ErrorText[playerid], 1);
TextDrawLetterSize(ErrorText[playerid], 0.299999,1.100000);
TextDrawColor(ErrorText[playerid], 0xffffffff);
TextDrawSetOutline(ErrorText[playerid], 1);
TextDrawSetProportional(ErrorText[playerid], 1);
TextDrawSetShadow(ErrorText[playerid], 1);
return 1;
}
stock
InfoTD_MSG( playerid, Msg[], times )
{
TextDrawHideForPlayer(playerid, ErrorText[playerid]);
new g_szMess[ 400 ];
format(g_szMess, sizeof(g_szMess), \"%s\", Msg);
SetTimerEx(\"TextOff\", times, false, \"i\", playerid);
TextDrawSetString(ErrorText[playerid], g_szMess);
TextDrawShowForPlayer(playerid, ErrorText[playerid]);
}
forward TextOff( playerid );
public TextOff( playerid )
{
TextDrawHideForPlayer(playerid, ErrorText[playerid]);
}