Na servie plugin w czacie Pokazuje Gracz 1 spadl i zabralo mu 45.667865 HP
A chcial bym zeby pokazywalo Gracz Diabelek spadl i zabralu mu 45HP bez tych koncowek
#include <amxmodx>
#include <hamsandwich>
#include <hlsdk_const>
#define PLUGIN "Obrazenia"
#define VERSION "1.0"
#define AUTHOR "Zero"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "obrazenia")
}
public obrazenia(id, Inflictor, Attacker, Float:Damage, DamageBits)
{
if((DamageBits & DMG_FALL) && Damage > 10)
{
new name[32]
get_user_name(id,name,31)
client_print(0, print_chat, "Gracz %d spadl i zabralo mu %f hp",id, Damage);
}
}


Dodatki SourceMod




Temat jest zamknięty








