Forum
CS2D Scripts How to check if player have 2 weapons ?How to check if player have 2 weapons ?
4 replies 1
the player always needs to have a melee weapon. otherwise chances are very high that you will experience some glitches.
therefore I would not recommend to do that.
nevertheless: playerweapons(playerid) is the command you would have to use. it returns a Lua table (array) containing all weapons of a player (IDs)
Thank you for help
He means for example if a player has a machete and a knife then strip the knife. Like that. It won't lead to any glitches, at least as far as I know.
1