I noticed that Ham_CS_Player_ResetMaxSpeed crashes the server. There is no logs.
Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>
public plugin_init()
{
RegisterHamPlayer(Ham_CS_Player_ResetMaxSpeed, "CBasePlayer_ResetMaxSpeed_Post", 1);
//RegisterHam(Ham_CS_Player_ResetMaxSpeed, "player", "CBasePlayer_ResetMaxSpeed_Post", 1);
register_clcmd("say /speed", "ClCmdSpeed");
}
public CBasePlayer_ResetMaxSpeed_Post(this)
{
if (!is_user_alive(this))
return;
new Float:flSpeed = 300.0;
entity_set_float(this, EV_FL_maxspeed, flSpeed);
}
public ClCmdSpeed(id)
{
if (!is_user_alive(id))
return PLUGIN_HANDLED;
ExecuteHamB(Ham_CS_Player_ResetMaxSpeed, id);
client_print(id, print_chat, "New speed set.");
return PLUGIN_HANDLED;
}
Code:
] version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 15:58:59 Apr 3 2019 (8196)
Code:
] meta version
Metamod v1.21.1-am 2013-09-26 (5:13)
by Will Day <[email protected]>
http://www.metamod.org/
compiled: Sep 26 2013, 22:35:52 (msc optimized)
Code:
] amxx version
AMX Mod X 1.9.0.5241 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jan 30 2019 07:09:20
Built from: https://github.com/alliedmodders/amxmodx/commit/21100375
Build ID: 5241:21100375
Core mode: JIT+ASM32
__________________