Raised This Month: $ Target: $400
 0% 

client print_console


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
J4CK
Member
Join Date: Dec 2008
Location: India
Old 12-01-2010 , 14:00   client print_console
Reply With Quote #1

I want when player join my server, all players can see in console:

[user connect] Name from Country

why dont works ?
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <geoip>

public client_putinserver(id) {

        static 
putin_name[32]
        
get_user_name(id,putin_name,32)

        static 
ip[17],country[46]
        
get_user_ip(id,ip,16,1)
    
        
geoip_country(ip,country,45)
        
        if(
equal(country,"error"))
            
client_print(0print_console"[user connect] %s from [%s]",putin_name"unknown")
        else
            
client_print(0print_console"[user connect] %s from [%s]",putin_name,country)

J4CK 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 11:16.


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