Quote:
Originally Posted by thEsp
Code:
#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>
/* Choose your own desired values. */
new const WantedButton = IN_DUCK;
new const Float:MaxSpeed = 100.0;
new const Weapon = CSW_AK47;
public plugin_init()
{
register_forward(FM_CmdStart, "fwCmdStart_pre");
}
public fwCmdStart_pre(id)
{
if(get_user_weapon(id) == Weapon && (pev(id, pev_button) & WantedButton))
{
fm_set_user_maxspeed(id, MaxSpeed);
}
else if(get_user_weapon(id) == Weapon && !(pev(id, pev_button) & WantedButton))
{
ExecuteHamB(Ham_CS_Player_ResetMaxSpeed, id);
}
}
Try this, I wrote it accordingly to what you said...
|
This is not even going to work at all, the players gain insane speed by doing GS/SGS even if the maxspeed is limited to 100/200/... (People can go up to 700~). they can still go higher. so I manually need to lower their speed down.