Quote:
Originally Posted by lolzin123
but if i do this and the player switch the weapon... His maxspeed back to normal.
|
Add a hook on curweapon to set maxspeed
PHP Code:
register_event( "CurWeapon" , "fw_CurWeapon" , "be" , "1=1" );
public fw_CurWeapon( id )
{
static iWeapon; iWeapon = read_data( 2 );
static iPrevWeapon[ 33 ];
if ( iPrevWeapon[ id ] != iWeapon )
set_user_maxspeed( id , 1.0 );
iPrevWeapon[ id ] = iWeapon;
}
__________________