22.09.2016, 17:43
Quote:
Код:
if(damagedid != INVALID_PLAYER_ID) { PlayerPlaySound(playerid,17802,0.0,0.0,0.0); if(PlayerData[playerid][SpectateP] != -1) PlayerPlaySound(PlayerData[playerid][SpectateP],17802,0.0,0.0,0.0); new s[128]; format(s, 128, "+ %.0f HP to %s(%d) using %s", amount, PlayerData[damagedid][Name], damagedid, GetWeaponNameEx(weaponid)); PlayerTextDrawSetString(playerid, GiveDamage, s); PlayerTextDrawShow(playerid, GiveDamage); SetTimerEx("HideDamageTD", 2000, false, "i", playerid); format(s, 128, "- %.0f HP from %s(%d) using %s", amount, PlayerData[playerid][Name], playerid, GetWeaponNameEx(weaponid)); PlayerTextDrawSetString(damagedid, TakeDamage, s); PlayerTextDrawShow(damagedid, TakeDamage); SetTimerEx("HideDamageTD", 2000, false, "i", damagedid); SetPlayerChatBubble(damagedid, s, 0xE81010FF, 100.0, 2000); } return 1; } |