Raised This Month: $12 Target: $400
 3% 

set cs_set_user_bpammo to 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 09-13-2018 , 17:59   set cs_set_user_bpammo to 0
Reply With Quote #1

Hello,

Why does cs_set_user_bpammo cannot be set to 0 ? I have tried that code but it's not working

PHP Code:
cs_set_user_bpammo(idCSW_AWP0); 
__________________


D4rkSiD3Rs is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-13-2018 , 18:43   Re: set cs_set_user_bpammo to 0
Reply With Quote #2

it definitely should work. post the code you tested
jimaway is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 09-13-2018 , 18:50   Re: set cs_set_user_bpammo to 0
Reply With Quote #3

PHP Code:
public cmdAdd_10Shots(id)
{
    
//UTIL_DropWeapon(id, 1);
    
    
new iWep give_item(id,"weapon_awp");
    
    if ( 
iWep )
    {
        
cs_set_weapon_ammo(iWep10);
        
cs_set_user_bpammo(idCSW_AWP0);
        
set_pdata_float(id831.05);
        
        
g_Wpn[id] = 1;
        
        
message_begin(MSG_ONEget_user_msgid("WeaponList"), {0,0,0}, id);
        
write_string("weapon_buffawp");
        
write_byte(1);
        
write_byte(30);
        
write_byte(-1);
        
write_byte(-1);
        
write_byte(0);
        
write_byte(2);
        
write_byte(CSW_AWP);
        
write_byte(0);
        
message_end();
        
        
set_pev(idpev_viewmodel2g_ViewModel);
        
set_pev(idpev_weaponmodel2g_WeaponModel);
        
        
UTIL_PlayWeaponAnimation(id5);
    }

__________________


D4rkSiD3Rs is offline
Old 09-14-2018, 12:19
Celena Luna
This message has been deleted by Celena Luna. Reason: nvm
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 10-13-2018 , 17:56   Re: set cs_set_user_bpammo to 0
Reply With Quote #4

Someone help me ?
__________________


D4rkSiD3Rs is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 10-13-2018 , 19:11   Re: set cs_set_user_bpammo to 0
Reply With Quote #5

Quote:
new const m_rgAmmo_CBasePlayer[32] = { 376, 377, ... }
const XO_PLAYER = 5
const ammo_338magnum = 1
set_pdata_int(id, m_rgAmmo_CBasePlayer[0] + ammo_338magnum, 0, XO_PLAYER)
__________________
My English is A0
E1_531G is offline
Reply


Thread Tools
Display Modes

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 02:24.


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