Forum

> > CS2D > Scripts > How to check if player have 2 weapons ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to check if player have 2 weapons ?

4 replies
To the start Previous 1 Next To the start

old Re: How to check if player have 2 weapons ?

DC
Admin Off Offline

Quote
this would be an invalid game state.
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)

old Re: How to check if player have 2 weapons ?

DC
Admin Off Offline

Quote
yeah that wasn't clear after his first post as he said "weapons" which includes all types of weapons... I also got that after his second post where he said "I only use melee weapons in the server anyways"...
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview