View Single Post
PandahChan
New Member
Join Date: Mar 2017
Old 01-25-2019 , 19:19   Re: CSGO. How to check if a player has certain grenades
Reply With Quote #2

Hello, This is a very scrappy way of it but you want to be doing something on the lines of this.

There is a lot tidier ways of doing this but this is what I quickly made

What this does is on map start it will run through the character array of the grenade types and get the offsets as the offsets can change. From there on command it will take 1 argument, the players name.

On check it will check what inventory the player has. Again there is a lot more optimised and cleaner ways of doing this. But this was a scrappy code I just whipped up.
Attached Files
File Type: sp Get Plugin or Get Source (grenade_check.sp - 119 views - 3.9 KB)
PandahChan is offline