Raised This Month: $ Target: $400
 0% 

[ HELP ] cs_set_user_bpammo and cs_set_weapon_ammo error?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Banana.
BANNED
Join Date: Oct 2015
Location: Brazil [<o>]
Old 10-11-2015 , 10:19   Re: [ HELP ] cs_set_user_bpammo and cs_set_weapon_ammo error?
Reply With Quote #3

I fixed the code , but when the player reloads the bpammo changes to 30 and the ammo changes to 10 , how to fix ?
PHP Code:
public zp_extra_item_selected(playeritemid)
{
    if(
itemid == g_item_id)
    {
        if(
get_user_weapon(player) == CSW_AWP)
        {
            
drop_prim(player);
        }

        
g_has_anti[player] = true;
        
client_print(playerprint_chat"[ZP] Voce comprou a Antidote AWP.");
        new 
weaponid give_item(player"weapon_awp");
        
cs_set_weapon_ammo(weaponid1);
        
cs_set_user_bpammo(playerCSW_AWP5);
    } 

Banana. is offline
 



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 22:12.


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