View Single Post
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-24-2012 , 06:13   Re: Only purchase on base
Reply With Quote #3

If you want to only *give* the weapons in the buyzone, you need to check if player is in the buyzone... you can do that in 2 ways, hook "StatusIcon" and check for the buyzone icon (I'm doing that in my jCTF plugin if you want example code) or you can check a player flag... I don't remember which one was it, in any case, you need to SEARCH :}

But if you want to make players buy certain weapons, using client_cmd("weapon") would make the player buy it as if he bought it using the buy menu... it will check for money and if in buyzone.
I belive all weapon buy commands available are in cstrike/autobuy.txt.
__________________

Last edited by Hunter-Digital; 04-24-2012 at 06:14.
Hunter-Digital is offline