Raised This Month: $ Target: $400
 0% 

How do you log a cvar change into an INI?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-22-2006 , 17:32   How do you log a cvar change into an INI?
Reply With Quote #1

I need help

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "cvar Logger" #define VERSION "1.0" #define AUTHOR "SweatyBanana" public plugin_init()     {     register_plugin(PLUGIN, VERSION, AUTHOR). } public client_connect(id) {     if (!is_user_bot(id))         query_client_cvar(id, "mp_timelimit", "resultLog"); } public resultLog(id, const cvar[], const value[]) {     new name[32];     get_user_name(id, name, 31);         log_amx("Client %d(%s)'s rate is ^"%s^"", id, name, value); }


EDIT: I thought this would work, but I realized that it wont log who switched a cvar...it will simply check on connect what it is set to..and it doesnt log to an INI lol.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
 



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:32.


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