Salvacore
03.07.2013, 14:45
Начнём.
В public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid):
static const fmt_str[] = "-%.0f HP";
const fmt_size = sizeof(fmt_str)-2+3;
new string[fmt_size];
format(string, sizeof(string),fmt_str, amount);
SetPlayerChatBubble(playerid, string, -1 , 100.0, 2000);
Будет выглядеть над головой примерно так : -13 hp
В public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid):
static const fmt_str[] = "-%.0f HP";
const fmt_size = sizeof(fmt_str)-2+3;
new string[fmt_size];
format(string, sizeof(string),fmt_str, amount);
SetPlayerChatBubble(playerid, string, -1 , 100.0, 2000);
Будет выглядеть над головой примерно так : -13 hp