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
Author Message
Banana.
BANNED
Join Date: Oct 2015
Location: Brazil [<o>]
Old 10-10-2015 , 21:36   [ HELP ] cs_set_user_bpammo and cs_set_weapon_ammo error?
Reply With Quote #1

How to fix my code to when zp_extra_item_selected() set user bpammo to 5 and set weapon ammo to 1?
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.");
        
give_item(player"weapon_awp");
        
cs_set_user_bpammo(playerCSW_AWP5);
        
cs_set_weapon_ammo(CSW_AWP1);
    } 

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