Forum

> > CS2D > Scripts > How to check if player have 2 weapons ?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to check if player have 2 weapons ?

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

DC
Admin Off Offline

Zitieren
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)

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

DC
Admin Off Offline

Zitieren
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"...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht