Code:
#include <amxmodx>
#include <amxmisc>
// You forgot your defines
#define PLUGIN "My Plugin"
#define VERSION "1.0"
#define AUTHOR "Somebody"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("pause","function",ADMIN_LEVEL_B)
}
public function(id)
{
// check access
if(!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
new name [33]
get_user_name(id,name,32) // length is 33-1 in this case
client_cmd(0,"spk goslow.wav")
client_print(0,print_chat,"[AMXX] Server is in pause mode",name)
return PLUGIN_HANDLED
}
I'm off to bed.