Hmmm,maybe this helps:
;Artificial Intelligence Script
;Header
desc = Weapon Pickup (can drop = delete key)
;Triggers
;delete your weapon with g
:scancodekeypressed=34:plrsound=$1,removecurrentweapon
;huds
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=40,plrfacing=30:state=3
;pick up and change weapon with f
:state=3,scancodekeypressed=33:plrsound=$1,removecurrentweapon,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt,state=4
:plrdistfurther=65:state=1
;End of Script
and if it works, you can use this:
;Artificial Intelligence Script
;Header
desc = Weapon Pickup (can drop = delete key)
;Triggers
;delete your weapon with g
:scancodekeypressed=34:plrsound=$1,removecurrentweapon
;huds
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=40,plrfacing=30:state=2
:state=2:fpgcrawtextsize=32,fpgcrawtextfont=Arial,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=Change your weapon with F,state=3
:state=3:fpgcrawtextsize=32,fpgcrawtextfont=Arial,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=Change your weapon with F
;pick up and change weapon with f
:state=3,scancodekeypressed=33:plrsound=$1,removecurrentweapon,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt,state=4
:plrdistfurther=65:state=1
;End of Script
Public void likeFpsc{ System.out.println("I like FPSC!"
;}
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24