You should change the method where you set the speed.
Something like, feel free to adapt to your style/code :
Code:
new const Ham:Ham_Player_ResetMaxSpeed = Ham_Item_PreFrame;
public plugin_init()
{
RegisterHam( Ham_Player_ResetMaxSpeed, "player", "CPlayer_ResetMaxSpeed", 1 );
}
public CPlayer_ResetMaxSpeed( const player )
{
if( is_user_alive( player ) && get_user_maxspeed( player ) != 1 )
{
//
}
}
Forward is called only when the speed needs to be reset. You need also to check if not equal to 1, to not set the speed while the freezetime.
Anyway, it can't be approved. Reason :
Quote:
Originally Posted by Exolent[jNr]
This plugin won't be compatible with my v0.0.4.
Also, v0.0.3 is only in beta so you shouldn't be writing addons for it yet.
When I release a stable version, you can start writing addons.
|
__________________