Thread
:
Only purchase on base
View Single Post
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
04-24-2012 , 06:13 Re: Only purchase on base
#
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.
__________________
My plugins
|
jCTF Mod
|
The Hunters
Last edited by Hunter-Digital; 04-24-2012 at
06:14
.
Hunter-Digital
View Public Profile
Send a private message to Hunter-Digital
Find More Posts by Hunter-Digital