View Single Post
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 03-30-2011 , 05:24   Re: Orpheu: Problems getting SV_CheckProtocol function
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Why would you need that function ?
I want to KNOW, if is posible to "change" the client protocol. Only I want to know this, I donīt want to allow Non Steam players in my server. And principally, I want to learn the module usage


Quote:
Originally Posted by Arkshine View Post
For windows, you have to find the function before. There is a tutorial about that.
Iīve already had it:
PHP Code:
signed int __cdecl sub_1D97BD0(const void *a1signed int a2)
{
  
void *v2// eax@5
  
int v3// eax@5
  
unsigned __int8 v4// zf@5
  
unsigned __int8 v5// sf@5
  
signed int result// eax@7

  
if ( !a1 )
    
sub_1DABC60("SV_CheckProtocol:  Null address\n");
  if ( 
a2 == 48 )
  {
    
result 1;
  }
  else
  {
    if ( 
a2 <= 48 )
    {
      
sub_1D97980(
        
a1,
        
"This server is using a newer protocol ( %i ) than your client ( %i ).  You should check for updates to your client.\n",
        
48,
        
a2);
      
result 0;
    }
    else
    {
      
v3 sub_1D35480((int)off_1E61DD8);
      
v4 v3 == 0;
      
v5 v3 0;
      
v2 off_1E61DD8;
      if ( 
v5 v4 )
        
v2 "(no email address specified)";
      
sub_1D97980(
        
a1,
        
"This server is using an older protocol ( %i ) than your client ( %i ).  If you believe this server is outdated, you can contact the server administrator at %s.\n",
        
48,
        
a2,
        
v2);
      
result 0;
    }
  }
  return 
result;
}
// 1E61DD8: using guessed type void *off_1E61DD8; 
But in I donīt know what HEX values I must get
[IMG]http://img132.**************/img132/2342/idadis.png[/IMG]
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.

Last edited by S34Qu4K3; 03-30-2011 at 05:32.
S34Qu4K3 is offline