Only purchase on base
I would by this plugin to just buy the base ..
Because with it you can buy anywhere in the map. But I just want to buy at the bottom (where it appears the shopping cart). Code:
#include <amxmodx> |
Re: Only purchase on base
you could do this ,
PHP Code:
|
Re: Only purchase on base
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. |
Re: Only purchase on base
EpicMonkey, this way I know it's possible, but I want to do is MAKE SURE THE PLAYER IS IN BUYZONE, as Hunter said the friend.
Hunter-Digital, is this friend, you said it right. I want to check if the player is in buyzone tell me example how to do?! by the way, is a nice CTF game mode. |
Re: Only purchase on base
its already there in scripting help , ive seen lots of threads , just search for it and it will show up
|
Re: Only purchase on base
|
Re: Only purchase on base
I can think of a couple of ways:
A simple check: PHP Code:
PHP Code:
|
Re: Only purchase on base
in this case is better use cs_get_user_buyzone
|
Re: Only purchase on base
thank you very much
Friends, that was it. |
All times are GMT -4. The time now is 05:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.