One of my first plugins. What im trying to make is when a admin types amx_sound <file name> it will get played for everyone on the server. If anybody know if there is any plugin like it already tell me... Here it is:
Code:
#include <amxmodx>
plublic plugin_init()
{
register_plugin("Admin Sounds", "1.0", "XunTric")
register_concmd("amx_sound", "cmdsound", ADMIN_SLAY, "<Sound name> Plays a sound for the server")
}
plublic cmdsound(id,level,cid)
{
if(!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
server_cmd("play sound/adminsound/%s")
return PLUGIN_CONTINUE
}