[Ajuda] Ant TK
#7

Quote:
Originally Posted by BielCOP
Посмотреть сообщение
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
    new Float:Life, Float:Coleete, Float:Dano;
    PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
    GetPlayerArmour(damagedid, Coleete);
    GetPlayerHealth(damagedid, Life);
    if(Coleete > 0)
    {
        if(amount > Coleete)
        {
            Dano = amount - Coleete;
            Life = Life - Dano;
            SetPlayerArmour(damagedid, 0.0);
            SetPlayerHealth(damagedid, Life);
            return 1;
        }
        Coleete = Coleete - amount;
        SetPlayerArmour(damagedid, Coleete);
    }
    if(Coleete < 1)
    {
        Life = Life - amount;
        SetPlayerHealth(damagedid, Life);
    }
    /*if(IsPlayerAimingTargetBodyPart(playerid, damagedid, 1))
    {
        PlayAudioStreamForPlayer(playerid, "http://introserver.ueuo.com/HeadShot.mp3");
        GameTextForPlayer(damagedid, "~r~HEAD ~w~SHOT", 2000, 0);
        GameTextForPlayer(playerid, "~r~HEAD ~w~SHOT", 2000, 0);
        SetPlayerHealth(damagedid, -1);
    }*/

    new s[20];
    format(s, 20, "+Dano %.0f", amount);
    TextDrawSetString(GiveDamage[playerid], s);
    TextDrawShowForPlayer(playerid, GiveDamage[playerid]);
    //PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
    SetTimerEx("DestruirTextoDraw", 1000, false, "i", playerid);
    if(GetPlayerTeam(playerid) == MinhaGang[playerid]) // Troque pela variбvel que define as equipes.
    {
        return 0;
    }
    return 1;
}
nгo seria OnPlayerTakeDamage?
Reply


Messages In This Thread
Ant TK - by Caio_Freeze - 25.06.2013, 22:48
Re: Ant TK - by BielCOP - 25.06.2013, 23:17
Re: Ant TK - by Caio_Freeze - 25.06.2013, 23:38
Re: Ant TK - by feliphemort - 25.06.2013, 23:39
Re: Ant TK - by BielCOP - 25.06.2013, 23:44
Re: Ant TK - by Caio_Freeze - 25.06.2013, 23:49
Re: Ant TK - by Schocc - 26.06.2013, 01:15
Re: Ant TK - by Cleitonboy23 - 26.06.2013, 02:00
Re: Ant TK - by Maklister - 26.06.2013, 02:23
Re: Ant TK - by Caio_Freeze - 26.06.2013, 03:04

Forum Jump:


Users browsing this thread: 1 Guest(s)