Raised This Month: $ Target: $400
 0% 

blank row


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
funstyle
Member
Join Date: Feb 2010
Location: RO, Bucharest
Old 02-28-2010 , 17:37   blank row
Reply With Quote #1

PHP Code:
#include <amxmodx>

#define PLUGIN    "Log on the file server players"
#define VERSION    "1.0"
#define AUTHOR    "Starsailor"

#define LOGFILE    "players_server.log"

new g_Enabled;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    new 
mapa[32];
    
get_mapname(mapa,31);
    
    
g_Enabled register_cvar("ltf_enable","1")
    
    if( 
get_pcvar_num(g_Enabled) )
        
log_to_file(LOGFILE"------------ Map %s : ------------"mapa);
}

public 
client_putinserverid ) {
    if( 
get_pcvar_num(g_Enabled) ) {
        new 
name[32], authid[32], userip[32];
        
        
get_user_name(idname31);
        
get_user_ip(iduserip311);
        
get_user_authid(idauthid31);
        
        
log_to_file(LOGFILE"Player %s connected (%s) (IP: %s)",name,authid,userip); 
    }
}    

public 
client_disconnect(id){
    if( 
get_pcvar_num(g_Enabled) ) {
        new 
name[32], authid[32], userip[32];
        
        
get_user_name(idname31);
        
get_user_ip(iduserip311);
        
get_user_authid(idauthid31);
        
        
log_to_file(LOGFILE"Player %s disconnected (%s) (IP: %s)",name,authid,userip);
    }

need help, can you write a blank row? like this
Attached Thumbnails
Click image for larger version

Name:	untitled.JPG
Views:	117
Size:	35.7 KB
ID:	60674  
funstyle is offline
Send a message via Yahoo to funstyle
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-28-2010 , 17:56   Re: blank row
Reply With Quote #2

PHP Code:
log_to_file(LOGFILE"Player %s connected (%s) (IP: %s)^n",name,authid,userip);
log_to_file(LOGFILE"Player %s disconnected (%s) (IP: %s)^n",name,authid,userip); 
__________________

Last edited by fysiks; 02-28-2010 at 17:59.
fysiks is offline
funstyle
Member
Join Date: Feb 2010
Location: RO, Bucharest
Old 02-28-2010 , 18:22   Re: blank row
Reply With Quote #3

now works, thanks fysiks

Last edited by funstyle; 02-28-2010 at 18:30.
funstyle is offline
Send a message via Yahoo to funstyle
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 08:39.


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