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

set cs_set_user_bpammo to 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D4rkSiD3Rs
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); 
__________________


Looking for an awesome and reliable game hosting ?
Try GeekGamers Hosting.

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
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);
    }

__________________


Looking for an awesome and reliable game hosting ?
Try GeekGamers Hosting.

D4rkSiD3Rs is offline
Old 09-14-2018, 12:19
Celena Luna
This message has been deleted by Celena Luna. Reason: nvm
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:03.


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