Saw.
Умник
Здравствуйте, написал текстдрав хп работает все хорошо, но почему-то не отнимает по -1 хп, если игрок упадет или ему /sethp, то все обновляет.
Возможно, что сервер не отнимает по 1 хп, как исправить это?
PHP:
public health(playerid)
{
new string[10];
new Float:Health;
GetPlayerHealth(playerid,Health);
format(string, sizeof(string), "%.0f",Health);
TextDrawSetString(healthme[playerid], string);
}
SetTimer("health",1000,1);
healthme[playerid] = TextDrawCreate(42.000000, 302.000000, "100");
TextDrawBackgroundColor(healthme[playerid],215);
TextDrawFont(healthme[playerid],2);
TextDrawLetterSize(healthme[playerid],0.200000, 0.870000);
TextDrawColor(healthme[playerid],color_white);
TextDrawSetOutline(healthme[playerid],1);
TextDrawSetProportional(healthme[playerid],1);
TextDrawShowForPlayer(playerid,healthme[playerid]);
Последнее редактирование:
