/*
Show PW, v0.1
By r!p

Say "pw" or "showpw" and the password is shown in a HUD-message

*/


#include <amxmod>

public showpw(id)
{
    new sv_pass[32]
    get_cvar_string("sv_password",sv_pass,31)
    if(equal(sv_pass, ""))
        add(sv_pass,31,"No password entered")
    set_hudmessage(255, 255, 255, -1.0, 0.80, 0, 6.0, 6.0, 0.1, 0.1, 4)
    show_hudmessage(0,"** Server Password: %s **",sv_pass)
}

public plugin_init()
{
    register_plugin("showpw","0.1","r!p")
    register_clcmd("say pw","showpw")
    register_clcmd("say showpw","showpw")
    return PLUGIN_CONTINUE
}
