Hi,
Can I request an amx plugin that allows players to set rates so they can have better latency in-game?
I am thinking that when they type say:/cp - a menu will appear on the left side of the screen just like when buying or selecting teams. See below:
Optimize Connection:
1. Tunnel Server
2. Boost Ping
3. Good Recoil
------
A. When a player select Tunnel Server, this function will be read:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <chatcolor>
new TunnelTimes[33];
public plugin_init()
register_clcmd("say /cp", "CmdPing");
public CmdPing(id) {
TunnelTimes[id] = 0;
new name[32]
get_user_name(id, name, 31)
client_print_color(0, print_chat, "^3[^4o-cP` Battle Arena^3] ^4%s^1 find 3 tunnels.", name);
set_task(0.1, "CmdTunnel", id);
set_task(0.2, "CmdTunnel", id);
set_task(0.3, "CmdTunnel", id);
return PLUGIN_HANDLED;
}
public CmdTunnel(id) {
TunnelTimes[id]++;
new szPing, szLoss;
get_user_ping(id, szPing, szLoss);
client_print_color(0, print_chat, "^3[^4o-cP` Battle Arena^3] ^1Tunnel: ^4%d", szPing);
return PLUGIN_HANDLED;
}
B. When a player select Boost Ping, his rates will be set to:
Quote:
fastsprites 1
fps_max 999
fps_modem 999
gl_max_size 256
r_drawviewmodel 1
r_dynamic 0
r_mirroralpha 0
r_mmx 1
cl_rate 9999
cl_cmdrate 11
cl_updaterate 11
r_decals 0
mp_decals 0
sv_allowupload 0
sv_allowdownload 1
sv_download_ingame 0
cl_weather 0
cl_lc 1
cl_lw 1
rate 25000
cl_corpsestay 0
viewsize 0
sv_airaccelerate 200
mp_flashlight 0
sv_maxupdaterate 100
sv_maxrate 25000
sv_minrate 0
cl_upspeed 32000
cl_forwardspeed 32000
cl_sidespeed 32000
cl_backspeed 32000
gl_spriteblend 0
|
C. When a player select Good Recoil, his rates will be set to:
Quote:
rate 25000
cl_updaterate 100
cl_cmdrate 105
fps_max 100
cl_upspeed 32000
cl_forwardspeed 32000
cl_sidespeed 32000
cl_backspeed 32000
gl_spriteblend 0
|
Thank you and looking forward!