Alert message Textdraw
#1

I'm trying to create an alert message using a generic "warning" text draw I made, the idea is that, player gets it and depending on the message it changes the color and text.

Ex: Player tries to buy an owned car: Send "THIS IS NOT YOUR CAR!" message, in Red color for 5 seconds.

Код:
WarningTextdraw = TextDrawCreate(320.000000, 405.000000, "TEXT");
TextDrawAlignment(WarningTextdraw , 2);
TextDrawBackgroundColor(WarningTextdraw , 255);
TextDrawFont(WarningTextdraw , 2);
TextDrawLetterSize(WarningTextdraw , 0.389999, 1.899999);
TextDrawColor(WarningTextdraw , -16776961);
TextDrawSetOutline(WarningTextdraw , 1);
TextDrawSetProportional(WarningTextdraw , 1);
So my question is, when to update it, when to kill it :P and how to set it so that I can change the color (3 colors, grey, blue, red) and time shown for player ID.



I just ran out of logic
Reply
#2

TextDrawColor + SetTimerEx +TextDrawHideForPlayer +TextDrawShowForPlayer
Reply
#3

I am not sure if this works I just tried it in a minute. Hope it works.

pawn Код:
WarningTextdraw = TextDrawCreate(320.000000, 405.000000, "TEXT");
TextDrawAlignment(WarningTextdraw , 2);
TextDrawBackgroundColor(WarningTextdraw , 255);
TextDrawFont(WarningTextdraw , 2);
TextDrawLetterSize(WarningTextdraw , 0.389999, 1.899999);
TextDrawColor(WarningTextdraw , -16776961);
TextDrawSetOutline(WarningTextdraw , 1);
TextDrawSetProportional(WarningTextdraw , 1);
TextDrawShowForPlayer(playerid, WarningTextdraw);
SetTimerEx("WarningTextdraw", 5000, false, "is", 1337,);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)