Example use...
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "Test "
#define VERSION "1.0"
#define AUTHOR "L//"
new g_explode
new const sprite_cylinder[] = { "sprites/shockwave.spr" }
public plugin_precache()
{
g_explode = engfunc(EngFunc_PrecacheModel, sprite_cylinder)
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test", "cylinder")
}
public cylinder(id)
{
new origin[3]
get_user_origin(id, origin)
create_cylinder(origin, 550, g_explode, 0, 0, 6, 60, 0, 0, 210, 0, 175, 0)
create_cylinder(origin, 700, g_explode, 0, 0, 6, 60, 0, 0, 235, 0, 150, 0)
create_cylinder(origin, 850, g_explode, 0, 0, 6, 60, 0, 15, 255, 15, 100, 0)
}
stock create_cylinder(origin[3], addrad, sprite, startfrate, framerate, life, width, amplitude, red, green, blue, brightness, speed)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMCYLINDER)
write_coord(origin[0])
write_coord(origin[1])
write_coord(origin[2])
write_coord(origin[0])
write_coord(origin[1])
write_coord(origin[2] + addrad)
write_short(sprite)
write_byte(startfrate)
write_byte(framerate)
write_byte(life)
write_byte(width)
write_byte(amplitude)
write_byte(red)
write_byte(green)
write_byte(blue)
write_byte(brightness)
write_byte(speed)
message_end()
}