Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Test"
#define VERSION "Test"
#define AUTHOR "Test"
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR);
register_clcmd("fs","fs");
}
public fs(id)
{
new iOrigin[3]
get_user_origin(id, iOrigin, 3)
message_begin(MSG_ALL, SVC_TEMPENTITY, iOrigin)
write_byte(2) //TE_GUNSHOT
write_coord(iOrigin[0]) // Position
write_coord(iOrigin[1])
write_coord(iOrigin[2])
message_end()
message_begin(MSG_ALL, SVC_TEMPENTITY, iOrigin)
write_byte(9) //TE_SPARKS
write_coord(iOrigin[0]) // Position
write_coord(iOrigin[1])
write_coord(iOrigin[2])
message_end()
return PLUGIN_HANDLED
}
Should work like this (write_byte(
//TE_SPARKS changed to write_byte(9)
__________________
All you need to change the world is one good lie and a river of blood