Oh ok. Now there is a little bit sense

and it is possible.
I tell you how it can be done and in the end I will post the finished script! But please read what I did:
How to swap weapon:
- open the weapon.fpi in your scriptbank folder
- delete all the unnessessary line from the script and you should have something like 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:state=1,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
;End of Script
- the think about what you want:
- see a weapon
- be near the weapon
- press a key
- remove the current weapon and replace it with the other
- what we have in the weapon.fpi
- you are near a weapon and take it(force)
- find actions and conditions what fit into this
- conditions: plrusingaction=1 or keypressed=28 1
- actions: removecurrentweapon
for other keycodes look at this:
- now the last step
- place the commands in the script
End result should look like this:
;Artificial Intelligence Script
;Header
desc = Weapon Pickup with enter (remove the holded weapon out of the game)
;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,keypressed=28 1:state=1,removecurrentweapon,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
;End of Script