AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event only for a round? For infinite ammunition from a selection menu (https://forums.alliedmods.net/showthread.php?t=193121)

CsIosefin 08-16-2012 17:20

Event only for a round? For infinite ammunition from a selection menu
 
Hello, I want to know if it can be an event only if it select the menu and let him do what I wrote about below:
Code:

if(get_user_weapon(id) == CSW_DEAGLE)
{
        if(cs_get_user_bpammo(id, CSW_DEAGLE) < 35)
        {
                cs_set_user_bpammo(id, CSW_DEAGLE, 35)
        }
}

It is possible? Or?

floatman 08-17-2012 04:48

Re: Event only for a round? For infinite ammunition from a selection menu
 
I don't understand what you're saying.

SpaceRip 08-17-2012 06:29

Re: Event only for a round? For infinite ammunition from a selection menu
 
why do you test it by yourself?

CsIosefin 08-17-2012 08:11

Re: Event only for a round? For infinite ammunition from a selection menu
 
floatman, if fewer than 35 bullets to reload and get back 35. I want to be selected from a menu and keep only the current round.

jimaway 08-17-2012 12:18

Re: Event only for a round? For infinite ammunition from a selection menu
 
http://forums.alliedmods.net/showthr...ghlight=reload
and use a boolean for players who should have 35 bullets in deagle clip


All times are GMT -4. The time now is 05:50.

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