I have some problems with message 'Brass', plug-in compiles but it doesn't work. Here is the code:
PHP Code:
#include < amxmodx >
#include < fakemeta >
#define PLUGIN "Test"
#define VERSION "Test"
#define AUTHOR "Test"
new model
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test", "clcmd_test")
}
public plugin_precache()
{
model = precache_model("models/shell.mdl")
}
public clcmd_test(id)
{
new origin[3], fAngle[3]
pev(id, pev_origin, origin)
pev(id, pev_view_ofs, fAngle)
message_begin(MSG_ONE, get_user_msgid("Brass"), {0,0,0}, id );
write_byte(TE_MODEL) // MessageID
write_coord(origin[0]) // Start X
write_coord(origin[1]) // Start Y
write_coord(origin[2]) // Start Z
write_coord(fAngle[0]) // Velocity X
write_coord(fAngle[1]) // Velocity Y
write_coord(fAngle[2]) // Velocity Z
write_angle(30.0) // Angle Rotation
write_short(model) // Model Index
write_byte(1) // Bounce sound type
write_byte(25) // Life (2.5 sec.)
message_end()
}
Where is my mistake?