Raised This Month: $ Target: $400
 0% 

Client Connect Messages......


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xoxolala
Junior Member
Join Date: Nov 2013
Old 11-15-2013 , 10:45   Re: Client Connect Messages......
Reply With Quote #1

Not tested, but should work.

EDIT:
Changed
PHP Code:
set_task 5.0"CmdShowHud"
----->
PHP Code:
set_task 5.0"CmdShowHud"id 
EDIT 2:
PHP Code:
if ( is_user_connected id ) ) 
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Connect Message"
#define VERSION "1.0"
#define AUTHOR "xoxolala"

const MAX_CLIENTS 32

new gUserIP MAX_CLIENTS ] [ 36 ]
new 
gUserID MAX_CLIENTS ] [ 36 ]
new 
gUserName MAX_CLIENTS ] [ 36 ]

public 
plugin_init ( )
{
    
register_plugin PLUGINVERSIONAUTHOR )
}

public 
client_putinserver id )
{
    
get_user_authid idgUserID id ], charsmax gUserID [ ] ) )
    
get_user_ip idgUserIP id ], charsmax gUserIP [ ] ), )
    
get_user_name idgUserName id ], charsmax gUserName [ ] ) )
    
    
set_task 5.0"CmdShowHud"id )
}

public 
CmdShowHud id )
{
    if ( 
is_user_connected id ) )
    {
        
set_hudmessage(25520030.020.8706.01.10.00.0, -1)
        
show_hudmessage 0"%s recently joined. [SteamID: %d] [IP: %d]"gUserName id ], gUserID id ], gUserIP id ] )
    }


Last edited by xoxolala; 11-15-2013 at 17:26.
xoxolala 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 23:13.


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