04.10.2012, 16:25
Pra que ficar criando tуpicos ?
pawn Код:
new Text3D:Sangue[MAX_PLAYERS];
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(damagedid != INVALID_PLAYER_ID)
{
new String[40];
format(String, sizeof(String), "%.0f", amount);
Sangue[damagedid] = Create3DTextLabel(String, -1, 30.0, 40.0, 50.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(Sangue[damagedid], damagedid, 0.0, 0.0, 0.7);
SetTimerEx("Retirar3D", 2000, false, "d", damagedid);
}
return 1;
}
//------------------------------------------------------------------------------
forward Retirar3D(playerid);
public Retirar3D(playerid)
{
Delete3DTextLabel(Sangue[playerid]);
return 1;
}