Raised This Month: $ Target: $400
 0% 

write to file from amx menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-18-2007 , 16:00   Re: write to file from amx menu
Reply With Quote #1

Almost. Remember you can post code in [small][/small] tags.
Minor changes:
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("plugin name", "1.00", "plugin author")     register_clcmd("amx_adduser", "newuseradd") } public newuseradd(id) {     if ( ! is_user_admin(id) ) {         client_print(id, print_console, "You are not an administrator. Please refrain from using this command!")         return PLUGIN_HANDLED     }         new whattowrite[64], player[32], pass[28]         read_argv(1, player, 31)     read_argv(2, pass, 27)         new target = cmd_target(id, player, 9)     get_user_name(target, player, 31)         format(whattowrite, 63, "^"%s^" ^"%s^"", player, pass)     write_file("addons/amxmodx/nicks.txt", whattowrite)         client_print(id, print_console, "User %s, password %s wrote to file.", player, pass)         return PLUGIN_HANDLED }
[ --<-@ ] Black Rose is offline
Reply



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 22:25.


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