Editing Clip Size
Hey guys, I'm here again.
I've got an issue with editing clip size in galil to be only able to hold 2 bullets. I can change the gun's clip easily like this: cs_set_weapon_ammo(find_ent_by_owner(-1, "weapon_galil", id), 2) This command works just fine, but I also want this to work when I reload the gun, instead the galil after reloading gets 35 ammo and I couldn't find any solution to this for some reason, the only thing I've potentially got: PHP Code:
Have a great day. |
Re: Editing Clip Size
|
Re: Editing Clip Size
Thanks for sending me the link, I tried to write the code into mine from it but I've never worked with something like item_postframe... + The plugin is useless to me, 'cause I need to put this feature in my code so it can work properly, I've got an exclusively edited gun in shop menu and I need to edit the clip size for it (I could've said that earlier right)
|
Re: Editing Clip Size
Ok I got it working finally after lots of hours, if someone would use the code bellow, go ahead and use it:
PHP Code:
|
Re: Editing Clip Size
The code is not readable use offsets name instead of numbers so people when they read it, they do understand.
|
| All times are GMT -4. The time now is 15:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.