#include <amxmodx>
#include <hamsandwich>
public plugin_init()
{
register_plugin("kogo he", "0.1", "K!113r")
RegisterHam(Ham_TakeDamage, "player","fwTakeDamage",0);
}
public fwTakeDamage(this, idinflictor, idattacker, Float:damage, damagebits){
if(damagebits & (1<<24))// he
{
if(is_user_connected(idattacker) && is_user_connected(this))
{
new szName[33]
get_user_name(idattacker, szName, 32)
set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 8.0)
show_hudmessage(this, "Gracz %s rzucil w Ciebie granatem", szName) // zamiast this dasz 0, to będzie cały serwer widział wiadomość
}
}
return HAM_IGNORED
}
Skompiluj i gotowe, przeczytaj komentarz i zmień indeks jeśli chcesz.


Dodatki SourceMod




Moja zawartość
Mężczyzna

