22.03.2018, 21:48
(
Последний раз редактировалось None1337; 22.03.2018 в 22:30.
)
When OnPlayerGiveDamage is called, I have a function like this:
above the code i have this:
When I'm spectate on the player, i received the message above in chat, but the first message from the first code it isn't show when the player did damage with m4 9.324511
Why?
Код:
if(amount == 9.324511 && weaponid == 31) {
new string[126];
format(string, 126, "%s did 9.324511 damage to %s", GetName(playerid), GetName(damagedid));
foreach(new i : Admins) SendClientMessage(i, -1, string);
}
Код:
foreach(new i : Admins)
{
if(Spectate[i] == playerid && ShowDMG[i] == 1)
{
ToPlayer(i, COLOR_ACTION, "DMG: %s did %f damage to %s.", GetName(playerid), amount, GetName(damagedid));
}
}
Why?


