Raised This Month: $ Target: $400
 0% 

Need help 2 load ini file...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Extrem-5x
Junior Member
Join Date: May 2006
Old 05-22-2006 , 09:33   Need help 2 load ini file...
Reply With Quote #1

Hi
I am new to amx plugin and to create em, so i have a newb question.

How do i do it, so when i have said /adminhelp, it will load a text file, so i can see it ingame?

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define ACCESS_LEVEL    ADMIN_VOTE #define PLUGIN "Help Menus" #define VERSION "Beta" #define AUTHOR "King Extrem" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("say /adminhelp","Admin",0,": Displays a list of admin commands")     register_cvar("adminmenu","1")     register_clcmd("say /userhelp","User",0,": Displays a list of user commands")     register_cvar("usermenu","1")     register_cvar("user_on_admin","1") } public Admin(id) {     if(get_cvar_num("adminmenu") == 1) {         if(get_cvar_num("user_on_admin","1") {             client_print(id,print_chat,"Du har ingen angang til denne menu, proov /helpmenu.")         }else if(get_user_flags(id) & ACCESS_LEVEL) {             client_print(id,print_chat,"The menu should load here,")         }     }     else{             client_print(id,print_chat,"Denne menu er ikke tilgaengelig,")     } } public User(id) {     if(get_cvar_num("usermenu") == 1) {             client_print(id,print_chat,"Du må vente til denne plugin er færdig,")     }else{             client_print(id,print_chat,"Denne menu er ikke tilgaengelig,")     } }
Extrem-5x is offline
 



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 16:27.


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