Raised This Month: $ Target: $400
 0% 

[SOLVED] Register_concmd password


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
extream87
Senior Member
Join Date: Aug 2011
Old 03-03-2014 , 10:18   [SOLVED] Register_concmd password
Reply With Quote #1

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!") }

Last edited by extream87; 03-03-2014 at 10:53.
extream87 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode