14.09.2012, 13:33
Top of script:
Then:
This will display how much health/armor the player lost when hit in a chat bubble above the player's head (for 2.5 seconds).
Note: this is a good way to spot cheaters, because I've noticed people using health/armor hacks do NOT call OnPlayerTakeDamage...so if you shoot a player and never see the chat bubble, they are likely cheating. Food for thought.
Код:
new string[16];
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { format(string,sizeof(string),"-%.0f hp",amount); SetPlayerChatBubble(playerid,string,0x660000AA,150.0,2500); return 1; }
Note: this is a good way to spot cheaters, because I've noticed people using health/armor hacks do NOT call OnPlayerTakeDamage...so if you shoot a player and never see the chat bubble, they are likely cheating. Food for thought.