Thanks jorndel. the only question i have is what EXACTLY is
Code:
if(isSubStr(weaponList[i], "glock") || isSubStr(weaponList[i], "akimbo") || isSubStr(weaponList[i], "ump45") || isSubStr(weaponList[i], "gl") || isSubStr(weaponList[i], "masada") || isSubStr(weaponList[i], "at4") || isSubStr(weaponList[i], "m79") || isSubStr(weaponList[i], "rpg") || isSubStr(weaponList[i], "thermal"))
and what is GetWeaponListPrimaries exactly? a list of every single weapon in the gsc code?
basically i was just looking to remove GL's and akimbos...
i was thinking more of a switch case method that checked to see if the substring of what i DONT want is in the name of what the player has. then somehow (this is what i need help with) take the weapon name. remove the unwanted portion.. and use the same EXACT weapon. using switch and case for the weapons/attachments that i dont want.
im fairly new at programming with gsc and most all of it (besides the basic logic programming format) is somewhat confuzing to me... and there really isnt a "this is how to do this specific thing with gsc" tutorial out there for alot of the different things i would maybe like to do... that being said asking for help with gsc makes me feel like im asking to be spoon-fed script
it makes it hard when there are peices of code and functions that are GSC specific and specific to the game... its like trying to play the game without the graphics - or like looking at mw2 without the geometry.
__________________________________________________ _________________
is there a way to parse the accepted weapons from a text list? im sure theres a way but im not sure how its done