05.09.2013, 19:12
Oops, I forgot :
pawn Code:
SetTimerEx("DamagedHP", 1500, false, "i", playerid); // create a timer to display the DAMAGE ICONS.
SetTimerEx("DamagedAP", 1500, false, "i", playerid); // create a timer to display the DAMAGE ICONS.
pawn Code:
forward DamagedHP(playerid);
public DamagedHP(playerid)
{
RemovePlayerAttachedObject(playerid, 2); // we remove the icons from his head after 1,5 seconds.
}
forward DamagedAP(playerid);
public DamagedAP(playerid)
{
RemovePlayerAttachedObject(playerid, 1); // we remove the icones from his head after 1,5 seconds.
}