05.08.2016, 13:32
may be it will help you
PHP код:
stock PlayerTextDrawFadeIn(playerid, PlayerText:textdraw) {
PlayerTextDrawColor(playerid, textdraw, 0x11);
SetTimerEx("FadeInPlayerTextdraw", 1000, false, "iii", playerid, _:textdraw, 1);
}
forward FadeInPlayerTextdraw(playerid, PlayerText:textdraw, count);
public FadeInPlayerTextdraw(playerid, PlayerText:textdraw, count) {
switch(count) {
case 1: {
PlayerTextDrawColor(playerid, textdraw, 0x33);
SetTimerEx("FadeInPlayerTextdraw", 1000, false, "iii", playerid, _:textdraw, 2);
}
case 2: {
PlayerTextDrawColor(playerid, textdraw, 0x55);
SetTimerEx("FadeInPlayerTextdraw", 1000, false, "iii", playerid, _:textdraw, 3);
}
case 3: {
PlayerTextDrawColor(playerid, textdraw, 0x77);
}
}
}