buy grenade command/last prop standing code

This is for my dedicated Prop Hunt server. So what I’m looking for is a command that works kind of like ulx give, but instead it allows players to type !buy and spawns them an item_ar2_grenade. I’ve looked all over the internet and havent found anything for it but I’ve seen other servers have it. I’m also looking for a code that will give the last prop alive a weapon, again, I’ve seen other servers have this and It was a great feature. I’d appreciate any help I can get for this.