їIts possible?
#5

Create the textdraw ingame and export is as player textdraw.

Then:

pawn Code:
stock MessageHelpBox(playerid, string[], time = 5000)
{
    PlayerTextDrawSetString(playerid, MessageTxd[playerid], string);
    PlayerTextDrawShow(playerid, MessageTxd[playerid]);
    SetTimerEx("HideMessageBox", time, false, "d", playerid);
    return 1;
}

forward HideMessageBox(playerid)
public HideMessageBox(playerid)
{
    PlayerTextDrawHide(playerid, MessageTxd[playerid]);
}
To show it:

pawn Code:
MessageHelpBox(playerid, "Test! You can add ~r~colors ~b~too", 5000);
If you want to paste a string:

pawn Code:
new string[10];
format(string, sizeof(string), "~b~Test string %d", something);
MessageHelpBox(playerid, string, 5000);
Reply


Messages In This Thread
їIts possible? - by Dello - 30.09.2018, 18:05
Re: їIts possible? - by solstice_ - 30.09.2018, 18:08
Re: їIts possible? - by Dello - 30.09.2018, 18:19
Re: їIts possible? - by solstice_ - 30.09.2018, 18:20
Re: їIts possible? - by KinderClans - 30.09.2018, 18:53
Re: їIts possible? - by Dello - 30.09.2018, 18:58
Re: їIts possible? - by Dello - 30.09.2018, 19:03
Re: їIts possible? - by solstice_ - 30.09.2018, 19:18
Re: їIts possible? - by Dello - 30.09.2018, 19:30
Re: їIts possible? - by Dello - 01.10.2018, 15:33

Forum Jump:


Users browsing this thread: 2 Guest(s)