Quote:
Originally Posted by Exolent[jNr]
There are several threads that change a player's maxspeed and keep it that way on weapon change.
Search.
|
Ye i know. As u can see, i wrote it into my topic too.
I took the Curweapon code from
http://forums.alliedmods.net/showthread.php?t=94331
BUT
FAiled adding it:s
I have to add this:
PHP Code:
public Event_CurWeapon_Active( id )
{
new iCurWeapon = read_data(2)
if( iCurWeapon != g_iCurWeapon[id] )
{
g_iCurWeapon[id] = iCurWeapon
new Float:flCustomMaxSpeed = g_flCustomMaxSpeed[id]
if( flCustomMaxSpeed != 0.0 )
{
set_user_maxspeed(id, flCustomMaxSpeed)
}
}
}
__________________