[Help] GTE EMU Edit + Proxy

JayC

Always Learning
Aug 8, 2013
5,504
1,401
Alright so when a player comes online it says
Received connection from [Proxy IP] --> This is fine because the real players IP still show up so if I IP ban it doesn't ban my proxy. The problem is when a user goes offline because the emu receives connection from the proxy it doesn't know who's account to set to offline. Is there a way I can fix it? I have never had this problem before. Thinking of recoding so it goes off username instead of IP but if their is a faster solution..
 

Sab

I love milfs.
Jun 25, 2011
1,212
136
So your players cant logoff?

I had the same problem where it showed up the proxy ip on my emulator but it didnt harm the hotel. I was still able to ban and what not.
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
So your players cant logoff?

I had the same problem where it showed up the proxy ip on my emulator but it didnt harm the hotel. I was still able to ban and what not.
vsgGtYy.png

There is 0 users online. That is correct.

But this is the problem:
5QtmCpQ.png

People aren't going on offline tho.
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
Can i see that part of the me page code?
Friends Online:
Code:
<?PHP
            $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".USER_ID."'");
            $i = 0;
            while($friends = mysql_fetch_array($query))
            {
                $getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '1' LIMIT 1");
                if(mysql_num_rows($getfriend) > 0)
                {
                    $i++;
                    if($i == 1)
                    {
                  
                        echo '<li class="small" id="feed-pending-members">Friends Online:<b><span> ';
                    }
                    $friend = mysql_fetch_array($getfriend);
echo htmlspecialchars($friend['username']).', ';
                }
            }
            if($i == 0)
                    {
                  
                        echo '<li class="small" id="feed-pending-members">You have no friends online.<b><span> ';
                    }
echo '</b>'?>
Players Online (Total):
Code:
$amt = number_format(mysql_result(dbquery("SELECT `users_online` FROM `server_status`"), 0));
 

Sab

I love milfs.
Jun 25, 2011
1,212
136
Friends Online:
Code:
<?PHP
            $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".USER_ID."'");
            $i = 0;
            while($friends = mysql_fetch_array($query))
            {
                $getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '1' LIMIT 1");
                if(mysql_num_rows($getfriend) > 0)
                {
                    $i++;
                    if($i == 1)
                    {
                
                        echo '<li class="small" id="feed-pending-members">Friends Online:<b><span> ';
                    }
                    $friend = mysql_fetch_array($getfriend);
echo htmlspecialchars($friend['username']).', ';
                }
            }
            if($i == 0)
                    {
                
                        echo '<li class="small" id="feed-pending-members">You have no friends online.<b><span> ';
                    }
echo '</b>'?>
Players Online (Total):
Code:
$amt = number_format(mysql_result(dbquery("SELECT `users_online` FROM `server_status`"), 0));
In your datebase:
Table server_settings

ip_lastforbans => 0
enable_antiddos => 1 (0 = enabled)
enable_securesessions => 0

Can you make sure it's set to those numbers.
 
Also are you with x4b proxy service?
 
If the top part does not work, try this process:

In your client.php add this code somewhere:
Code:
dbquery("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '"%username%"'");
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
In your datebase:
Table server_settings

ip_lastforbans => 0
enable_antiddos => 1 (0 = enabled)
enable_securesessions => 0

Can you make sure it's set to those numbers.
 
Also are you with x4b proxy service?
 
If the top part does not work, try this process:

In your client.php add this code somewhere:
Code:
dbquery("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '"%username%"'");
Neither of those worked. Their ip_last is already their IP and I have that setup already on top
 

Users who are viewing this thread

Top