10.02.2014, 17:02
Hey, i've just found this cool script in wiki and put it my mod, the problem is, its only pooping up the message in chat when I AM SCHOOTING...is there any way to make so it will pop up if someone is shooting me? and make it so its not spamming only one message per 5 second?
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(damagedid != INVALID_PLAYER_ID)
{
new string[128], player[MAX_PLAYER_NAME], damaged[MAX_PLAYER_NAME], weapon[24];
GetPlayerName(playerid, player, sizeof(player));
GetPlayerName(damagedid, damaged, sizeof(damaged));
GetWeaponName(weaponid, weapon, sizeof (weapon));
format(string, sizeof(string), "[ DAMAGE ] {FF0000}%s {FFFFFF}dostal {FF0000}%.0f zranenie {FFFFFF}od hraca {228B22}%s{FFFFFF}. Zbran: %s", damaged, amount, player, weapon);
SendClientMessageToAll(0xFFFFFFFF, string);
}
return 1;
}

