Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Глобальные текстдравы
- new Text:hunger_TD[2];
- hunger_TD[0] = TextDrawCreate(497.9999, 123.4478, "Box"); // пусто
- TextDrawLetterSize(hunger_TD[0], 0.0000, 0.5666);
- TextDrawTextSize(hunger_TD[0], 605.4995, 0.0000);
- TextDrawAlignment(hunger_TD[0], 1);
- TextDrawColor(hunger_TD[0], -1);
- TextDrawUseBox(hunger_TD[0], 1);
- TextDrawBoxColor(hunger_TD[0], 255);
- TextDrawBackgroundColor(hunger_TD[0], 255);
- TextDrawFont(hunger_TD[0], 1);
- TextDrawSetProportional(hunger_TD[0], 1);
- TextDrawSetShadow(hunger_TD[0], 0);
- hunger_TD[1] = TextDrawCreate(497.9999, 133.3480, "Box"); // пусто
- TextDrawLetterSize(hunger_TD[1], 0.0000, 0.5666);
- TextDrawTextSize(hunger_TD[1], 605.4995, 0.0000);
- TextDrawAlignment(hunger_TD[1], 1);
- TextDrawColor(hunger_TD[1], -1);
- TextDrawUseBox(hunger_TD[1], 1);
- TextDrawBoxColor(hunger_TD[1], 255);
- TextDrawBackgroundColor(hunger_TD[1], 255);
- TextDrawFont(hunger_TD[1], 1);
- TextDrawSetProportional(hunger_TD[1], 1);
- TextDrawSetShadow(hunger_TD[1], 0);
- // Текстдравы для игроков
- new PlayerText:hunger_PTD[MAX_PLAYERS][2];
- hunger_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 497.2998, 122.7592, "LD_SPAC:white"); // пусто
- PlayerTextDrawTextSize(playerid, hunger_PTD[playerid][0], 0.0, 6.0000);
- PlayerTextDrawAlignment(playerid, hunger_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, hunger_PTD[playerid][0], 8388863);
- PlayerTextDrawBackgroundColor(playerid, hunger_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, hunger_PTD[playerid][0], 4);
- PlayerTextDrawSetProportional(playerid, hunger_PTD[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, hunger_PTD[playerid][0], 0);
- hunger_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 497.2998, 132.5594, "LD_SPAC:white"); // пусто
- PlayerTextDrawTextSize(playerid, hunger_PTD[playerid][1], 0.0, 6.0000);
- PlayerTextDrawAlignment(playerid, hunger_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, hunger_PTD[playerid][1], -5963521);
- PlayerTextDrawBackgroundColor(playerid, hunger_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, hunger_PTD[playerid][1], 4);
- PlayerTextDrawSetProportional(playerid, hunger_PTD[playerid][1], 0);
- PlayerTextDrawSetShadow(playerid, hunger_PTD[playerid][1], 0);
- stock UpdateHunger(playerid)
- {
- new Float: size = 0.0;
- for(new i; i < PlayerInfo[playerid][pHunger]; i ++) size += 9.18;
- PlayerTextDrawTextSize(playerid, hunger_PTD[playerid][0], size, 6.0000);
- PlayerTextDrawShow(playerid, hunger_PTD][playerid][0]);
- size = 0.0;
- for(new i; i < PlayerInfo[playerid][pThirst]; i ++) size += 9.18;
- PlayerTextDrawTextSize(playerid, hunger_PTD[playerid][1], size, 6.0000);
- PlayerTextDrawShow(playerid, hunger_PTD][playerid][1]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement