Raised This Month: $ Target: $400
 0% 

[Orpheu] SV_ClientConnect & Con_Printf


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-30-2012 , 20:40   [Orpheu] SV_ClientConnect & Con_Printf
Reply With Quote #1

I have this: (Code is not mine)
PHP Code:
public OrpheuHookReturn:OnSV_ConnectClientPre( )
{
    
handlePrintf OrpheuRegisterHookOrpheuGetFunction"Con_Printf" ), "Con_Printf" OrpheuHookPre );

    return 
OrpheuIgnored;
}

public 
OrpheuHookReturn:Con_Printf( const a[ ], const message[ ] )
{
    if( 
containimessage,"^" connectedaddress ^"" ) != -)
    {
        static 
len
        len 
255;
        
        static 
str_right256 ], str_left256 ], ip256 ], Msg256 ];
        
        
formatexMsg,charsmaxMsg ),"%s"message );
        
        
splitMsgstr_leftlenstr_rightlen"^" connectedaddress ^"" );
        
strtokstr_rightiplenstr_rightlen':' );
        
        
log_amx"IP: %s"ip );
    }
    
    return 
OrpheuIgnored;

Can I get SteamID and player name where I take client IP ?
__________________

Last edited by Neeeeeeeeeel.-; 06-30-2012 at 20:53.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
 



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 15:04.


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