07.04.2012, 03:08
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.
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
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);
I just ran out of logic
![Cheesy](images/smilies/biggrin.png)