Raised This Month: $32 Target: $400
 8% 

How to set up weapons ammo CSGO?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doggg
Member
Join Date: Jun 2018
Old 07-10-2019 , 15:47   How to set up weapons ammo CSGO?
Reply With Quote #1

trying to make a command that will give all the players one bullt with degale but i cannot understand how to set the ammo to 1? any help? the code so far : any ideas?
Code:
public Action deagle(int client, int args)
{
	for (int i = 1; i <= MaxClients; i++)
	{
	
     if(IsClientInGame(i) && IsClientAlive(i)){
            EquipPlayerWeapon(i, CSWeapon_DEAGLE); 
          }  
    
    }
  
}

Last edited by Doggg; 07-10-2019 at 19:43.
Doggg is offline
Doggg
Member
Join Date: Jun 2018
Old 07-10-2019 , 19:43   Re: How to set up weapons ammo CSGO?
Reply With Quote #2

Any ideas?
Doggg is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-10-2019 , 20:04   Re: How to set up weapons ammo CSGO?
Reply With Quote #3

https://forums.alliedmods.net/showpo...99&postcount=3
iskenderkebab33 is offline
Doggg
Member
Join Date: Jun 2018
Old 07-11-2019 , 06:49   Re: How to set up weapons ammo CSGO?
Reply With Quote #4

Quote:
Originally Posted by iskenderkebab33 View Post
ALL this to give degale with one bullet? :"(
Doggg is offline
Whai
Senior Member
Join Date: Jul 2018
Old 07-11-2019 , 07:34   Re: How to set up weapons ammo CSGO?
Reply With Quote #5

Code:
SetEntProp(weaponEnt, Prop_Send, "m_iPrimaryReserveAmmoCount", 0);
SetEntProp(weaponEnt, Prop_Send, "m_iSecondaryReserveAmmoCount", 0);
Change the 0 into another number ?
__________________
Whai is offline
Reply



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 23:41.


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