Hud For Damage (Rpg,RP)
Recommended so that whenever it takes damage by firearms, that appears for 3 seconds!
Pastebin:http://pastebin.com/Yw5sPf08
Recommended so that whenever it takes damage by firearms, that appears for 3 seconds!
PHP Code:
//Credits for C4DU//
// In OnPlayerConnect prefferably, we procced to create our textdraws:
Textdraw0 = CreatePlayerTextDraw(playerid, 654.000000, 467.000000, "_");
PlayerTextDrawBackgroundColor(playerid, Textdraw0, 0);
PlayerTextDrawFont(playerid, Textdraw0, 0);
PlayerTextDrawLetterSize(playerid, Textdraw0, 0.500000, -53.200000);
PlayerTextDrawColor(playerid, Textdraw0, -1);
PlayerTextDrawSetOutline(playerid, Textdraw0, 0);
PlayerTextDrawSetProportional(playerid, Textdraw0, 1);
PlayerTextDrawSetShadow(playerid, Textdraw0, 1);
PlayerTextDrawUseBox(playerid, Textdraw0, 1);
PlayerTextDrawBoxColor(playerid, Textdraw0, 1711276117);
PlayerTextDrawTextSize(playerid, Textdraw0, -10.000000, 61.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw0, 0);
Textdraw1 = CreatePlayerTextDraw(playerid, 530.000000, 10.000000, "particle:bloodpool_64");
PlayerTextDrawBackgroundColor(playerid, Textdraw1, 0);
PlayerTextDrawFont(playerid, Textdraw1, 4);
PlayerTextDrawLetterSize(playerid, Textdraw1, 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw1, -1);
PlayerTextDrawSetOutline(playerid, Textdraw1, 0);
PlayerTextDrawSetProportional(playerid, Textdraw1, 1);
PlayerTextDrawSetShadow(playerid, Textdraw1, 1);
PlayerTextDrawUseBox(playerid, Textdraw1, 1);
PlayerTextDrawBoxColor(playerid, Textdraw1, 255);
PlayerTextDrawTextSize(playerid, Textdraw1, 92.000000, 101.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw1, 0);
Textdraw2 = CreatePlayerTextDraw(playerid, 59.000000, 206.000000, "particle:bloodpool_64");
PlayerTextDrawBackgroundColor(playerid, Textdraw2, 0);
PlayerTextDrawFont(playerid, Textdraw2, 4);
PlayerTextDrawLetterSize(playerid, Textdraw2, 0.800000, 0.099999);
PlayerTextDrawColor(playerid, Textdraw2, -1);
PlayerTextDrawSetOutline(playerid, Textdraw2, 0);
PlayerTextDrawSetProportional(playerid, Textdraw2, 1);
PlayerTextDrawSetShadow(playerid, Textdraw2, 1);
PlayerTextDrawUseBox(playerid, Textdraw2, 1);
PlayerTextDrawBoxColor(playerid, Textdraw2, 255);
PlayerTextDrawTextSize(playerid, Textdraw2, 211.000000, 185.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw2, 0);
Textdraw3 = CreatePlayerTextDraw(playerid, 623.000000, 236.000000, "_");
PlayerTextDrawBackgroundColor(playerid, Textdraw3, 0);
PlayerTextDrawFont(playerid, Textdraw3, 0);
PlayerTextDrawLetterSize(playerid, Textdraw3, 0.500000, 14.000000);
PlayerTextDrawColor(playerid, Textdraw3, -1);
PlayerTextDrawSetOutline(playerid, Textdraw3, 0);
PlayerTextDrawSetProportional(playerid, Textdraw3, 1);
PlayerTextDrawSetShadow(playerid, Textdraw3, 1);
PlayerTextDrawUseBox(playerid, Textdraw3, 1);
PlayerTextDrawBoxColor(playerid, Textdraw3, 1717986969);
PlayerTextDrawTextSize(playerid, Textdraw3, 381.000000, 86.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw3, 0);
Textdraw4 = CreatePlayerTextDraw(playerid, 473.000000, 263.000000, "_");
PlayerTextDrawBackgroundColor(playerid, Textdraw4, 0);
PlayerTextDrawFont(playerid, Textdraw4, 0);
PlayerTextDrawLetterSize(playerid, Textdraw4, 0.300000, 8.000000);
PlayerTextDrawColor(playerid, Textdraw4, -1);
PlayerTextDrawSetOutline(playerid, Textdraw4, 0);
PlayerTextDrawSetProportional(playerid, Textdraw4, 1);
PlayerTextDrawSetShadow(playerid, Textdraw4, 1);
PlayerTextDrawUseBox(playerid, Textdraw4, 1);
PlayerTextDrawBoxColor(playerid, Textdraw4, 153);
PlayerTextDrawTextSize(playerid, Textdraw4, 391.000000, 86.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw4, 0);
Textdraw5 = CreatePlayerTextDraw(playerid, 616.000000, 263.000000, "_");
PlayerTextDrawBackgroundColor(playerid, Textdraw5, 0);
PlayerTextDrawFont(playerid, Textdraw5, 0);
PlayerTextDrawLetterSize(playerid, Textdraw5, 0.300000, 8.000000);
PlayerTextDrawColor(playerid, Textdraw5, -1);
PlayerTextDrawSetOutline(playerid, Textdraw5, 0);
PlayerTextDrawSetProportional(playerid, Textdraw5, 1);
PlayerTextDrawSetShadow(playerid, Textdraw5, 1);
PlayerTextDrawUseBox(playerid, Textdraw5, 1);
PlayerTextDrawBoxColor(playerid, Textdraw5, 153);
PlayerTextDrawTextSize(playerid, Textdraw5, 391.000000, 86.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw5, 0);
Textdraw6 = CreatePlayerTextDraw(playerid, 475.000000, 263.000000, "_");
PlayerTextDrawBackgroundColor(playerid, Textdraw6, 255);
PlayerTextDrawFont(playerid, Textdraw6, 1);
PlayerTextDrawLetterSize(playerid, Textdraw6, 0.150000, 7.999996);
PlayerTextDrawColor(playerid, Textdraw6, -1);
PlayerTextDrawSetOutline(playerid, Textdraw6, 0);
PlayerTextDrawSetProportional(playerid, Textdraw6, 1);
PlayerTextDrawSetShadow(playerid, Textdraw6, 1);
PlayerTextDrawUseBox(playerid, Textdraw6, 1);
PlayerTextDrawBoxColor(playerid, Textdraw6, -1);
PlayerTextDrawTextSize(playerid, Textdraw6, 468.000000, 133.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw6, 0);
Textdraw7 = CreatePlayerTextDraw(playerid, 477.000000, 265.000000, "Damage suffered");
PlayerTextDrawBackgroundColor(playerid, Textdraw7, 255);
PlayerTextDrawFont(playerid, Textdraw7, 3);
PlayerTextDrawLetterSize(playerid, Textdraw7, 0.469998, 1.399999);
PlayerTextDrawColor(playerid, Textdraw7, -1);
PlayerTextDrawSetOutline(playerid, Textdraw7, 0);
PlayerTextDrawSetProportional(playerid, Textdraw7, 1);
PlayerTextDrawSetShadow(playerid, Textdraw7, 1);
PlayerTextDrawSetSelectable(playerid, Textdraw7, 0);
Textdraw8 = CreatePlayerTextDraw(playerid, 398.000000, 264.000000, "Weapon");
PlayerTextDrawBackgroundColor(playerid, Textdraw8, 255);
PlayerTextDrawFont(playerid, Textdraw8, 3);
PlayerTextDrawLetterSize(playerid, Textdraw8, 0.500000, 1.500000);
PlayerTextDrawColor(playerid, Textdraw8, -1);
PlayerTextDrawSetOutline(playerid, Textdraw8, 0);
PlayerTextDrawSetProportional(playerid, Textdraw8, 1);
PlayerTextDrawSetShadow(playerid, Textdraw8, 1);
PlayerTextDrawSetSelectable(playerid, Textdraw8, 0);
Textdraw9 = CreatePlayerTextDraw(playerid, 503.000000, 278.000000, "X 100");
PlayerTextDrawBackgroundColor(playerid, Textdraw9, 255);
PlayerTextDrawFont(playerid, Textdraw9, 3);
PlayerTextDrawLetterSize(playerid, Textdraw9, 0.899999, 6.000000);
PlayerTextDrawColor(playerid, Textdraw9, 255);
PlayerTextDrawSetOutline(playerid, Textdraw9, 0);
PlayerTextDrawSetProportional(playerid, Textdraw9, 1);
PlayerTextDrawSetShadow(playerid, Textdraw9, 1);
PlayerTextDrawSetSelectable(playerid, Textdraw9, 0);
Textdraw10 = CreatePlayerTextDraw(playerid, 501.000000, 278.000000, "X 100");
PlayerTextDrawBackgroundColor(playerid, Textdraw10, 255);
PlayerTextDrawFont(playerid, Textdraw10, 3);
PlayerTextDrawLetterSize(playerid, Textdraw10, 0.899999, 6.000000);
PlayerTextDrawColor(playerid, Textdraw10, -1728052993);
PlayerTextDrawSetOutline(playerid, Textdraw10, 0);
PlayerTextDrawSetProportional(playerid, Textdraw10, 1);
PlayerTextDrawSetShadow(playerid, Textdraw10, 1);
PlayerTextDrawSetSelectable(playerid, Textdraw10, 0);
Textdraw11 = CreatePlayerTextDraw(playerid, 490.000000, 284.000000, "( )");
PlayerTextDrawBackgroundColor(playerid, Textdraw11, 255);
PlayerTextDrawFont(playerid, Textdraw11, 3);
PlayerTextDrawLetterSize(playerid, Textdraw11, 0.699999, 5.000000);
PlayerTextDrawColor(playerid, Textdraw11, 255);
PlayerTextDrawSetOutline(playerid, Textdraw11, 0);
PlayerTextDrawSetProportional(playerid, Textdraw11, 1);
PlayerTextDrawSetShadow(playerid, Textdraw11, 1);
PlayerTextDrawSetSelectable(playerid, Textdraw11, 0);
Textdraw12 = CreatePlayerTextDraw(playerid, 488.000000, 284.000000, "( )");
PlayerTextDrawBackgroundColor(playerid, Textdraw12, 255);
PlayerTextDrawFont(playerid, Textdraw12, 3);
PlayerTextDrawLetterSize(playerid, Textdraw12, 0.699999, 5.000000);
PlayerTextDrawColor(playerid, Textdraw12, -1);
PlayerTextDrawSetOutline(playerid, Textdraw12, 0);
PlayerTextDrawSetProportional(playerid, Textdraw12, 1);
PlayerTextDrawSetShadow(playerid, Textdraw12, 1);
PlayerTextDrawSetSelectable(playerid, Textdraw12, 0);
Textdraw13 = CreatePlayerTextDraw(playerid, 250.000000, 10.000000, "hud:first");
PlayerTextDrawBackgroundColor(playerid, Textdraw13, 0);
PlayerTextDrawFont(playerid, Textdraw13, 4);
PlayerTextDrawLetterSize(playerid, Textdraw13, 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw13, -1);
PlayerTextDrawSetOutline(playerid, Textdraw13, 0);
PlayerTextDrawSetProportional(playerid, Textdraw13, 1);
PlayerTextDrawSetShadow(playerid, Textdraw13, 1);
PlayerTextDrawUseBox(playerid, Textdraw13, 1);
PlayerTextDrawBoxColor(playerid, Textdraw13, 255);
PlayerTextDrawTextSize(playerid, Textdraw13, 30.000000, 30.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw13, 0);
Textdraw14 = CreatePlayerTextDraw(playerid, 413.000000, 287.000000, "hud:radar_ammugun");
PlayerTextDrawBackgroundColor(playerid, Textdraw14, 0);
PlayerTextDrawFont(playerid, Textdraw14, 4);
PlayerTextDrawLetterSize(playerid, Textdraw14, 0.830000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw14, -1);
PlayerTextDrawSetOutline(playerid, Textdraw14, 0);
PlayerTextDrawSetProportional(playerid, Textdraw14, 1);
PlayerTextDrawSetShadow(playerid, Textdraw14, 1);
PlayerTextDrawUseBox(playerid, Textdraw14, 1);
PlayerTextDrawBoxColor(playerid, Textdraw14, 255);
PlayerTextDrawTextSize(playerid, Textdraw14, 40.000000, 30.000000);
PlayerTextDrawSetSelectable(playerid, Textdraw14, 0);
// You can now use PlayerTextDrawShow, PlayerTextDrawHide and
// PlayerTextDrawDestroy functions to show, hide, and destroy the textdraw.