Raised This Month: $ Target: $400
 0% 

[HELP]I want to make a log plugin,but this have some problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ryo89589
Member
Join Date: Aug 2011
Old 05-28-2013 , 07:02   [HELP]I want to make a log plugin,but this have some problem.
Reply With Quote #1

I want to make a plugin for log all players keybinds, when the player connected.
But I found some question on this plugin.Please help me to solve the problem.
And then,I want to know how to get player all "bind" cvars on the plugin?Thank All Very Much!!
PHP Code:
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN_NAME "KeyBinds Logs"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "ryo89589"
 
new name[32], keybind[32]
new const 
LogFile[] = "keybind.log"
new g_LogFilePath[96]
 
public 
plugin_init()
{
 
register_plugin (PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
}
 
public 
plugin_precache()
{
 static 
logDir[64]
 
get_localinfo("amxx_logs"logDircharsmax(logDir))
 if (!
dir_exists(logDir)) mkdir(logDir)
 
format(g_LogFilePathcharsmax(g_LogFilePath), "%s/%s"logDirLogFile)
}
 
public 
client_infochanged(id)
{
 if (
is_user_connected(id) && !is_user_bot(id))
 {
  
get_user_name(idname31)
  
get_user_info(id"bind"keybind31)
 
  
log_to_file(g_LogFilePath,"[Bind Key Logs] ^"%s^" All Key Bind are %s ^n"namekeybind)
 }


Last edited by ryo89589; 05-28-2013 at 07:02.
ryo89589 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-28-2013 , 09:10   Re: [HELP]I want to make a log plugin,but this have some problem.
Reply With Quote #2

Not possible.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 16:25.


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