shel писал(а): Yopta, za bazar otvechau, skazal v sosedneu teme tupo vukladuvayte odobru a teper zadnuu podrybul? Tak delo ne poydet, bablo na stol yoba
Модераторы: Subb98, liFe iS GoOD
#include <amxmodx>
#include <amxmisc>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta_util>
#define PLUGIN "exampleDMSG"
#define VERSION "0.1"
#define AUTHOR "Xbass13"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("DeathMsg"), "DeathMsg_")
RegisterHam(Ham_Killed, "player", "Ham_Killed_", 1)
}
public DeathMsg_()
{
new id = get_msg_arg_int(1)
message_begin(MSG_ALL, SVC_UPDATEUSERINFO)
write_byte(id - 1)
write_long(get_user_userid(id))
write_char('\')
write_char('n')
write_char('a')
write_char('m')
write_char('e')
write_char('\')
write_string("ExampleName") //менять тут
write_long(0)
write_long(0)
write_long(0)
write_long(0)
message_end()
}
public Ham_Killed_(iVictim, iAttacker, iGib)
{
new szUserInfo[256]
copy_infokey_buffer(engfunc(EngFunc_GetInfoKeyBuffer, iAttacker), szUserInfo, charsmax(szUserInfo))
message_begin(MSG_ALL, SVC_UPDATEUSERINFO)
write_byte(iAttacker - 1)
write_long(get_user_userid(iAttacker))
write_string(szUserInfo)
write_long(0)
write_long(0)
write_long(0)
write_long(0)
message_end()
dllfunc(DLLFunc_ClientUserInfoChanged, iAttacker, engfunc(EngFunc_GetInfoKeyBuffer, iAttacker))
}
Сейчас этот форум просматривают: Bing [Bot], nekruxa и гости: 16