Damage
#1

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;
}
Reply


Messages In This Thread
Damage - by lsreskjn - 10.02.2014, 17:02
Re: Damage - by ]Rafaellos[ - 10.02.2014, 17:22
Re: Damage - by lsreskjn - 10.02.2014, 17:32
Re: Damage - by lsreskjn - 10.02.2014, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)