How can i make a plugin need password to access to menu?
If a player write in console plugin_pass "999" the plugin give him menu acess.
Example:
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd(if write plugin_pass "999" in console | password_correct = true)
}
public test(){
if (true)
ColorChat(id, GREEN, "Ok you have access to this command!")
}