OnPlayerTakeDamage
#4

Health is a float not an integer...
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID)
    {
        format(gString, sizeof(gString), "{aa0000}- %f HP", amount); //Hp is a float..
        PlayerDamage[playerid] = Create3DTextLabel(gString, 0xFFFFFFFF, 0.0, 0.0, 0.0, 7.5, -1);
        Attach3DTextLabelToPlayer(PlayerDamage[playerid], playerid, 0.0, 0.0, 0.4);
        SetTimerEx("RemoveDamageLabel", 3000, false, "d", playerid);
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerTakeDamage - by CriticalRP - 06.12.2013, 09:17
Re: OnPlayerTakeDamage - by McBan - 06.12.2013, 09:23
Re: OnPlayerTakeDamage - by CriticalRP - 06.12.2013, 09:43
Re: OnPlayerTakeDamage - by xVIP3Rx - 06.12.2013, 09:46
Re: OnPlayerTakeDamage - by CriticalRP - 06.12.2013, 09:47
Re: OnPlayerTakeDamage - by Konstantinos - 06.12.2013, 09:50
Re: OnPlayerTakeDamage - by CriticalRP - 06.12.2013, 09:56
Re: OnPlayerTakeDamage - by Pottus - 06.12.2013, 09:57
Re: OnPlayerTakeDamage - by RajatPawar - 06.12.2013, 10:02
Re: OnPlayerTakeDamage - by Pottus - 06.12.2013, 10:06
Re: OnPlayerTakeDamage - by CriticalRP - 06.12.2013, 10:42
Re: OnPlayerTakeDamage - by Riddick94 - 06.12.2013, 11:53
Re: OnPlayerTakeDamage - by CriticalRP - 06.12.2013, 12:00
Re: OnPlayerTakeDamage - by yanir3 - 06.12.2013, 12:01
Re: OnPlayerTakeDamage - by Richie© - 06.12.2013, 13:21
Re: OnPlayerTakeDamage - by CriticalRP - 06.12.2013, 21:12
Re: OnPlayerTakeDamage - by Pottus - 06.12.2013, 21:17
Re: OnPlayerTakeDamage - by CriticalRP - 08.12.2013, 15:25
Re: OnPlayerTakeDamage - by CriticalRP - 11.12.2013, 20:27

Forum Jump:


Users browsing this thread: 3 Guest(s)