AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Reload just one bullet (https://forums.alliedmods.net/showthread.php?t=220468)

terryoh 07-11-2013 04:32

Reload just one bullet
 
How Do I set to a weapon( Scout in particullary ) that when I reload it or it's reloading to reload just one bullet from bpammo ?

baneado 07-11-2013 06:34

Re: Reload just one bullet
 
I use this:
PHP Code:

update_ammo(id)
{
    if (!
is_user_alive(id)) return;
        
    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("CurWeapon"), _id)
    
write_byte(1)
    
write_byte(CSW_YOURWEAPON)
    
write_byte(-1)
    
message_end()
    
    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("AmmoX"), _id)
    
write_byte(6)
    
write_byte(1// ammo
    
message_end()



terryoh 07-11-2013 07:23

Re: Reload just one bullet
 
I don't get it ...how's that gonna help :-? ...my purpose was to change the max "ready ammo" from 10 bullets (the actual max ammo of the scout) to 1 bullet ...as in if the weapon reload to get from bpammo just one bullet and not waste 10 :-?

~Ice*shOt 07-12-2013 06:29

Re: Reload just one bullet
 
I think that this thing are in last request plugin


All times are GMT -4. The time now is 06:26.

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