edit:
tested and works:
PHP Code:
#include <amxmodx>
#define SVPASS_CMD ".svpass"
#define SVPASS_LEN 7 // how many chars the cmd has
public plugin_init()
{
register_clcmd("say", "hookSay")
}
public hookSay(id)
{
static msg[192]
read_args(msg, 191)
remove_quotes(msg)
trim(msg)
if(!equali(msg, SVPASS_CMD, SVPASS_LEN))
return PLUGIN_CONTINUE
copy(msg, 191, msg[SVPASS_LEN+1]) // remove the ".svpass" from string
server_cmd("sv_password ^"%s^"", msg)
client_print(0, print_chat, "(test) Server password changed to: %s", msg) // you can remove this
return PLUGIN_HANDLED
}
__________________