Raised This Month: $ Target: $400
 0% 

Editing Clip Size


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fixsek Kot
Member
Join Date: Feb 2022
Old 10-08-2022 , 14:06   Editing Clip Size
Reply With Quote #1

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:
public ham_reload_post(ent)
{
    static 
idid get_pdata_cbase(ent414)
    if(
get_pdata_int(ent544) && get_pdata_float(id835) <= 0.0)
    {
        if(
mushmaker[id]) set_pdata_int(ent5124)
    }

but it doesn't work, so I'll be glad for your advice.

Have a great day.
Fixsek Kot is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode