View Single Post
ghostdlr
Senior Member
Join Date: Aug 2010
Old 12-06-2022 , 11:29   Re: Event when user gets a new weapon
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
You can try Ham_AddPlayerItem. This thread has some examples: https://forums.alliedmods.net/showthread.php?t=85632

To get all of his weapons, you can use pev( id , pev_weapons ), which will give you all of their weapons in a bitfield of the CSW_ weapon ID's.
pev doesn't work

WARNING [356]: expression has no effect
WARNING [356]: expression has no effect
ERROR [356]: undefined symbol "pev"
ERROR [356]: expected token: ";", but found ")"
ERROR [356]: invalid expression, assumed zero
ghostdlr is offline