Код:
#include <amxmodx>
#include <engine>
new aura
new Float:fOrigin[3]
new iOrigin[3]
public plugin_init() {
register_plugin("Sprite", "1.0", "Admin")
register_clcmd("say /eff", "sprite")
}
public plugin_precache() {
aura = precache_model("sprites/shockwave.spr")
}
public sprite(id) {
if(is_user_alive(id)){
entity_get_vector(id, EV_VEC_origin, fOrigin)
FVecIVec(fOrigin, iOrigin)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY, iOrigin)
write_byte(TE_BEAMCYLINDER)
write_coord(iOrigin[0])
write_coord(iOrigin[1])
write_coord(iOrigin[2])
write_coord(iOrigin[0])
write_coord(iOrigin[1])
write_coord(iOrigin[2] + 125)
write_short(aura)
write_byte(0)
write_byte(1)
write_byte(6)
write_byte(8)
write_byte(1)
write_byte(255)
write_byte(10)
write_byte(0)
write_byte(128)
write_byte(5)
message_end()
}
}
Отредактировал: proff_q, - 22.11.2013, 12:14