try this:
;Artificial Intelligence Script
;Header
desc = Weapon Pickup
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40,plrusingaction=1:activate=2,state=1,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
:state=1,keypressed=28 0:state=2
:state=2,plrusingaction=1:activate=3,state=10,plrsound=$1,playerdrop
:state=3:state=10
:activated=2:plrspeed=0,newjumpheight=1
:activated=2,plrusingrun=1:plrspeed=0
:activated=3:plrspeed=100,newjumpheight=50
;End of Script