Hi all,

Im making some menu with a lot of scriptmenu responses for primary weapon and secondary weapon in the same .menu file
for all the primary weapons i put a "x" in front of the name. xgreasegun_mp, xkar98k_mp for example. In front of the the secondary weapons I wrote a "z", like zluger_mp and zcolt_mp.
I want to make a smart weapon function. If name of the response start with a "x" , remove the "x" and use it as self.primary. If it has a "z" in front, remove the "z" and use it as self.secondary.

How to do this? I dont have any clue at all