So i'd like to get the index of a certain weapon, so that i can do stuff with this entity.
Example:
Let's say i gave this player who has the index in a function an m4, and he decides to drop it. When he drops it, set glow to that weapon if it's an m4, and the owner of the m4 is correct. Don't set glow on other players m4 when they drop theirs. Only if it's the player that i previously chose in my function.
No need to teach me how to set glow on entities, i know that part. I just need to know how to detect weapon dropping, and checking who it belongs to, and storing the entity index of the weapon inside a variable so that i can do a bunch of stuff to it.