Raised This Month: $ Target: $400
 0% 

Write admin activity in log


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dimanok
Junior Member
Join Date: Jan 2010
Old 05-24-2010 , 12:39   Write admin activity in log
Reply With Quote #1

Hello all.
Help me please.
I have this code:
PHP Code:
#include <amxmodx>
#define PLUGIN ""
#define VERSION "0.0"
#define AUTHOR "Dimanok"



public plugin_init() {
   
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id)
{

new 
CurrentTime[9]
get_time("%H:%M:%S",CurrentTime,8

    static 
s_Name[32], s_Text[128], i_Flags
   
    get_user_name
(ids_Namecharsmax(s_Name))
    
i_Flags get_user_flags(id)


       if (
i_Flags ADMIN_LEVEL_H)
    else
     public  
client_disconnect id ) {
        
log_to_file ("admin_activity.log",CurrentTime)    
     return 
PLUGIN_HANDLED
    

It is necessary that if the admin has the flag "t" of his visit when he came and when he came in log file as follows: Nick xx.xx.xx - xx.xx.xx
Help me please.

Last edited by Dimanok; 05-25-2010 at 03:22.
Dimanok 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 05:23.


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