Quote:
Originally Posted by ConnorMcLeod
Don't use CurWeapon, use Ham_CS_ResetMaxspeed.
|
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "None"
new g_Test[33];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test", "Test")
RegisterHam(Ham_CS_Player_ResetMaxSpeed, "player", "Fw_MaxSpeed")
}
public Test(id)
{
g_Test[id] = true
}
public Fw_MaxSpeed(id)
{
if(g_Test[id])
{
set_user_maxspeed(id, 400.0)
}
}
The function calls , ive debugged it and eveything , it all works ... but speed doesnt change