How To Fix This
#6

pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
    new s[20];
    if(ArmourLost > 0)
    {
        format(s, 20, "+Damage %d", floatround(ArmourLost, floatround_round));
    }
    else if(HealthLost > 0)
    {
        format(s, 20, "+Damage %d", floatround(HealthLost, floatround_round));
    }
    TextDrawSetString(GiveDamage[Shooter], s);
    TextDrawShowForPlayer(Shooter, GiveDamage[Shooter]);
    PlayerPlaySound(Shooter,17802,0.0,0.0,0.0);
    SetTimerEx("DestruirTextoDraw", 1000, false, "i", Shooter);
    return 1;
}
Try out with that. Eventhough if that doenst work you can go to one system that has to work but doesnt specify if the player has lost health or armour.
Reply


Messages In This Thread
How To Fix This - by [IND]Crazy - 28.06.2013, 01:57
Respuesta: How To Fix This - by JustBored - 28.06.2013, 02:23
Re: How To Fix This - by [IND]Crazy - 28.06.2013, 02:58
Re: Respuesta: How To Fix This - by [IND]Crazy - 28.06.2013, 03:58
Re: How To Fix This - by GeniusPobs - 28.06.2013, 04:17
Respuesta: How To Fix This - by JustBored - 28.06.2013, 04:21

Forum Jump:


Users browsing this thread: 1 Guest(s)