Raised This Month: $ Target: $400
 0% 

Get ip in orpheu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stereo
Veteran Member
Join Date: Dec 2010
Old 05-17-2012 , 13:39   Get ip in orpheu
Reply With Quote #1

Hi, i'm trying lately how to get the ip of the user when orpheu call Sv_ClientConnect but I searched a lot and I don't found how, i have this:

PHP Code:
#include <amxmodx>
#include <orpheu>
public plugin_init()    
OrpheuRegisterHookOrpheuGetFunction"SV_ConnectClient" ), "OnSV_ConnectClient" );

public 
OrpheuHookReturn:OnSV_ConnectClient( )
{
//Hello

Someone know? Thanks

Last edited by xPaw; 05-20-2012 at 02:59. Reason: Restored
Stereo is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-17-2012 , 13:45   Re: Get ip in orpheu
Reply With Quote #2

why using orpheu if you just can use client_connect or client_putinserver?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Stereo
Veteran Member
Join Date: Dec 2010
Old 05-17-2012 , 13:47   Re: Get ip in orpheu
Reply With Quote #3

Because I need to check the connection as soon as possible
Stereo is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-17-2012 , 15:04   Re: Get ip in orpheu
Reply With Quote #4

does get_user_ip ( index, ip[], len, [ without_port ] ) not work?

I've never heard about Orpheu.....but you're using amxmodx
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-17-2012 , 15:22   Re: Get ip in orpheu
Reply With Quote #5

I think this is called before sending client data like ip to the server, so it's not possible to get player's ip. (I'm not really sure, though)
__________________

Last edited by <VeCo>; 05-17-2012 at 15:23.
<VeCo> is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-17-2012 , 15:31   Re: Get ip in orpheu
Reply With Quote #6

Then, hook FM_ClientConnect

Args are : ClientConnect(index, const szName[], const szAddress[], szRejectReason[128])

where szAddress is IP
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Stereo
Veteran Member
Join Date: Dec 2010
Old 05-18-2012 , 08:52   Re: Get ip in orpheu
Reply With Quote #7

Don't work, fakemeta runs later thank orpheu :S
Stereo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-18-2012 , 10:21   Re: Get ip in orpheu
Reply With Quote #8

Quote:
Originally Posted by Stereo View Post
Don't work, fakemeta runs later thank orpheu :S
It's at the same time.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-18-2012 , 08:58   Re: Get ip in orpheu
Reply With Quote #9

Wait a second....if orpheu is meant to run before everything else....wouldn't it have a get IP function built in? One would hope so......but i don't have a clue.

Or get awesome and write the inc youreself!
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 05-18-2012 at 09:02. Reason: typo
Liverwiz is offline
Stereo
Veteran Member
Join Date: Dec 2010
Old 05-19-2012 , 05:50   Re: Get ip in orpheu
Reply With Quote #10

Don't work for me, something else?

Last edited by Stereo; 05-19-2012 at 05:51.
Stereo 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 00:22.


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