Raised This Month: $32 Target: $400
 8% 

Ping Faker 1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Flasher
Senior Member
Join Date: Apr 2008
Old 05-17-2017 , 11:36   Re: Ping Faker 1.5
Reply With Quote #201

@freak716
Had the same case far long ago. Changed the plugin. You can take it here if you wish.
Flasher is offline
TFCDRDEATH
Member
Join Date: Nov 2017
Old 11-22-2017 , 21:14   Re: Ping Faker 1.5
Reply With Quote #202

https://forums.alliedmods.net/showth...67048?p=767048
TFCDRDEATH is offline
TFCDRDEATH
Member
Join Date: Nov 2017
Old 11-22-2017 , 21:16   Re: Ping Faker 1.5
Reply With Quote #203

is there a way you could make a bot only version?

other players seems to leave as soon as they see a 1337 ping ,

other than that I love the idea!!


thanks
TFCDRDEATH is offline
TFCDRDEATH
Member
Join Date: Nov 2017
Old 11-22-2017 , 21:17   Re: Ping Faker 1.5
Reply With Quote #204

bot ping of 50 - 70 range or random would be best!!
TFCDRDEATH is offline
gil5587
Member
Join Date: Apr 2018
Old 09-30-2018 , 04:27   Re: Ping Faker 1.5
Reply With Quote #205

Quote:
Originally Posted by TFCDRDEATH View Post
bot ping of 50 - 70 range or random would be best!!
+

Have you found something?
gil5587 is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 09-30-2018 , 06:32   Re: Ping Faker 1.5
Reply With Quote #206

Quote:
Originally Posted by gil5587 View Post
+

Have you found something?
pingfake_bots <0/1/2> - Affect bots too (set to 2 for bots ONLY setting)

just set pingfake_bots to 2 in amxmodx.cfg
__________________
JusTGo is offline
gil5587
Member
Join Date: Apr 2018
Old 09-30-2018 , 20:30   Re: Ping Faker 1.5
Reply With Quote #207

Quote:
Originally Posted by JusTGo View Post
pingfake_bots <0/1/2> - Affect bots too (set to 2 for bots ONLY setting)

just set pingfake_bots to 2 in amxmodx.cfg
I meant that real players will have a custom ping (we decide, like 1-20)
gil5587 is offline
GBLTeam
Senior Member
Join Date: Mar 2012
Location: Republic of Macedonia
Old 11-03-2018 , 10:15   Re: Ping Faker 1.5
Reply With Quote #208

It has some problems with AMXX v1.8.3
GBLTeam is offline
Send a message via MSN to GBLTeam Send a message via Skype™ to GBLTeam
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-03-2018 , 10:30   Re: Ping Faker 1.5
Reply With Quote #209

Quote:
Originally Posted by GBLTeam View Post
It has some problems with AMXX v1.8.3
If you maybe give more info about those problems, you can get help about them. AMXX is backwards compatible, so such problems should be reported ASAP.
__________________

Last edited by OciXCrom; 11-03-2018 at 10:30.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
TFCDRDEATH
Member
Join Date: Nov 2017
Old 01-01-2020 , 16:58   Re: Ping Faker
Reply With Quote #210

Quote:
Originally Posted by Bugsy View Post
I've been looking for something like this for a long time since I run bots on my server. I through this together real fast to see if it would work. It will make only bots appear to have a realistic ping. I'm sure it can be optimized but it's a start.

PHP Code:
#include <amxmodx>
#include <fakemeta>

new  g_offset[2], g_ping[3]
new 
g_maxplayersg_connected[33]

public 
plugin_init()
{
    
register_plugin("Bot Ping Faker""1.1""MeRcyLeZZ\bugsy")

    
g_maxplayers get_maxplayers()
    
    
register_forward(FM_UpdateClientData"fw_UpdateClientData")
}

public 
client_putinserver(id)
{
    
g_connected[id] = true
}

public 
client_disconnect(id)
{
    
g_connected[id] = false
}

public 
fw_UpdateClientData(id)
{
    
// Scoreboard key being pressed?
    
if (!(pev(idpev_button) & IN_SCORE) && !(pev(idpev_oldbuttons) & IN_SCORE))
        return;
    
    static 
playersendingping
    sending 
0
    
    
for (player 1player <= g_maxplayersplayer++)
    {
        if (!
g_connected[player] || !is_user_bot(player))
             continue;
 
        
//make each players ping vary a bit
        
switch( player )
        {
            case 
1,2,3,4ping random_num1535)
            case 
5,6,7,8ping random_num(4060)
            case 
9,10,11,12ping random_num6080)
            case 
13,14,15,16ping random_num75100)
            case 
17,18,19,20ping random_num7090)
            case 
21,22,23,24ping random_num5080)
            case 
25,26,27,28ping random_num2040)
            default: 
ping random_num4565)
        }
        
        
// Calculate weird argument values based on target ping
        // -> first ping
        
for (g_offset[0] = 0g_offset[0] < 4g_offset[0]++)
        {
            if ((
ping g_offset[0]) % == 0)
            {
                
g_ping[0] = (ping g_offset[0]) / 4
                
break;
            }
        }
        
// -> second ping
        
for (g_offset[1] = 0g_offset[1] < 2g_offset[1]++)
        {
            if ((
ping g_offset[1]) % == 0)
            {
                
g_ping[1] = (ping g_offset[1]) / 2
                
break;
            }
        }
        
        
// -> third ping
        
g_ping[2] = ping
        
        
// Send message with the weird arguments
        
switch (sending)
        {
            case 
0:
            {
                
// Start a new message
                
message_begin(MSG_ONE_UNRELIABLESVC_PINGS_id)
                
write_byte((g_offset[0] * 64) + ((player) - 1))
                
write_short(g_ping[0])
                
sending++
            }
            case 
1:
            {
                
// Append additional data
                
write_byte((g_offset[1] * 128) + (* (player 1)))
                
write_short(g_ping[1])
                
sending++
            }
            case 
2:
            {
                
// Append additional data and end message
                
write_byte((* (player 1)))
                
write_short(g_ping[2])
                
write_byte(0)
                
message_end()
                
sending 0
            
}
        }
    }
    
    
// End message if not yet sent
    
if (sending)
    {
        
write_byte(0)
        
message_end()
    }




THIS WORKS 100% BETTER THEN "FAKE PING 1.5" you should post this under a new topic
"BOTS FAKE PING 1.6

great work!!
__________________
<a href="https://www.gametracker.com/server_info/74.91.117.2:27015/" target="_blank"><img src="http://cache.gametracker.com/server_info/74.91.117.2:27015/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
TFCDRDEATH is offline
Reply


Thread Tools
Display Modes

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 10:50.


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