|
发表于 2012-2-3 17:49:01
|
显示全部楼层
来自 中国–湖南–长沙
源在此
#include <amxmodx>
#define PLUGIN "杀字显示"
#define VERSION "1.0"
#define AUTHOR "一大扎鬼"
new g_sM
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("DeathMsg","hook_death","a");
}
public plugin_precache()
{
g_sM = precache_model("sprites/sha.spr")
}
public hook_death()
{
new id = read_data(2)
new origin[3]
get_user_origin(id, origin)
message_begin(MSG_BROADCAST ,SVC_TEMPENTITY)
write_byte(TE_SPRITE)
write_coord(origin[0])
write_coord(origin[1])
write_coord(origin[2])
write_short(g_sM)
write_byte(3)
write_byte(155)
message_end()
} |
|