Adding ammo slots
Can I get code of how to add slots to weapon's ammo (all weapons the same ammo amount), I don't need to set user's bpammo, need only additional slots. Like M4A1 (default 30/90) would have 30/200 (after buying full bullets), but when player spawns and buy's M4A1, he would have 30/0 (he must buy the bullets, not get it). Anybody?
|
Re: Adding ammo slots
I don't understand the first portion of your message at all..not sure what you're trying to do.
If you are trying to make a player start with 30/0 when he buys an M4A1, just set the user's ammo to 30 when he gets the weapon. |
Re: Adding ammo slots
He wants to be able to buy more bullet than allowed, aka increase bpammo limit.
|
Re: Adding ammo slots
ooooh. In that case, you have to send a WeaponList message and increase the ammo amount.
|
Re: Adding ammo slots
So, can you make the code?
|
Re: Adding ammo slots
Some one make the code. +Karma.
|
Re: Adding ammo slots
Hey Wilson [29th ID] long time no see
http://wiki.alliedmods.net/Half-Life...nts#WeaponList Also I think this will also work. cs_set_user_bpammo |
Re: Adding ammo slots
I tried to increase the PrimaryAmmoMaxAmount by setting the message argument, but it doesn't work.
Decrease doesn't work either as you can see for m249 ammo. Code:
Any ideas ? |
Re: Adding ammo slots
Anybody?
|
Re: Adding ammo slots
You can't just intercept it and change it. Try adding an echo line right after that set_msg_arg_int - you will probably never see it echoed.
Instead of intercepting it, send it yourself. |
| All times are GMT -4. The time now is 01:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.