So as the title says, it there any event which i can hook when a players maxspeed is changed
I tried the following method but it doesnt worked:
Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
public plugin_init() register_clcmd( "say test" , "hook" )
RegisterHam(Ham_Item_PreFrame, "player", "item" )
public item(id) client_print(0,print_chat,"Item Frame Called on player: %d", id)
public hook(id)
{
client_print(id,print_center,"speed set to 800.0")
set_pev(id, pev_maxspeed, 800.0)
}
The forward is only called when i try to change my weapon, and it is not called when i manually set the max speed to 800.0 using the "say test" command so is there any other forward/event through which i can be sure that the clients maxspeed was changed
__________________