but as i tested, i found out the function checks if the player posesses a primary (not if he has switched to a primary). That means it returns 1 if player has a M4 in inventory..although he is holding a deagle. It checks if player carries only primary. Very interesting function ...
@ConnorMcLeod
As i see your code checks for weapon slots. Very smart, man! Can you show an example how to use it.