Make buying restrictions in buy zone

  • Thread starter Thread starter Moon Wolf
  • Start date Start date
M

Moon Wolf

Guest
i was wondering if thers a way to make it so people can only buy certain things like ammo or someit without having to make sure every sever taht plays my map makes the restrictions?
 
Yes, but it's not really related to the buyzones.
Create a new entity called game_weapon_manager.
You'll have to create one for each weapon you want to limit. The placement of the entities shouldn't matter. You'll need weaponnames, you can find those in the tutorials section over at hl 2 world.com under weapons.

Hope I helped you some :)
 
so i put weapon_ak47 limit to 0 and i could still buy. is 0 = infinity or unlimited

this idea doesn't work ... unless i am doing something wrong, in which case please explain

Note: limited deagles to 0 and proceeded to buy a deagle without a problem, when i threw it the CSS crashed referenced memory error
 
Dead-Inside said:
Yes, but it's not really related to the buyzones.
Create a new entity called game_weapon_manager.
You'll have to create one for each weapon you want to limit. The placement of the entities shouldn't matter. You'll need weaponnames, you can find those in the tutorials section over at hl 2 world.com under weapons.

Hope I helped you some :)

Game_weapon_manager crashes multiplayer games. Which means that unless there's a way to detect when a player buys a certain weapon, you can't restrict buying.
 
I have a restriction of 2 AWPs on my map, I haven't had any crashes...

But I guess I'll have to test more.

@ BigWalnutZ, did you try -1?
 
am i to understand theres no way to restrict weapons? i KNOW there HAS to be away...aswell as thers a way to give ammo yto players i just bet we have to do it manualy
 
Actually no, there isn't. There's some kind of Amx/Admin mod out though that let's you restrict weapons among other things. This doesn't really concern mappers though, but more the server as a whole.

You can spawn weapons, but they don't stay. You can remove weapons, but I'm not sure if you can check what weapon a player has. If you can, you can just remove the weapon from a player "If the player is carrying an AK" or something.

I don't really care though :)
 
Back
Top