Raised This Month: $ Target: $400
 0% 

item amount


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RainZ
Junior Member
Join Date: Sep 2011
Old 09-19-2011 , 08:20   item amount
Reply With Quote #1

what is the code to put the amount of the weapon . e.g

PHP Code:
give_item(id weapon_hegrenade
I want to put the amount where should I set the amount of the weapon?
RainZ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-19-2011 , 08:25   Re: item amount
Reply With Quote #2

Use http://www.amxmodx.org/funcwiki.php?go=func&id=186
__________________
Arkshine is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 09-19-2011 , 08:25   Re: item amount
Reply With Quote #3

http://www.amxmodx.org/funcwiki.php?go=func&id=186
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-19-2011 , 08:26   Re: item amount
Reply With Quote #4

Nice synchronization.
__________________
Arkshine is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 09-19-2011 , 08:26   Re: item amount
Reply With Quote #5

...damn lag for me...
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
RainZ
Junior Member
Join Date: Sep 2011
Old 09-19-2011 , 08:31   Re: item amount
Reply With Quote #6

bpammo? also for HE Grenade? o.o
RainZ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-19-2011 , 08:33   Re: item amount
Reply With Quote #7

Sure. Try and see.
__________________
Arkshine is offline
RainZ
Junior Member
Join Date: Sep 2011
Old 09-19-2011 , 08:34   Re: item amount
Reply With Quote #8

Arkshine , please help .

I made a plugin and I want to added the amount but I need to buy it twice so I can get the amount that I want . Please help

PHP Code:
public zp_extra_item_selected(playeritemid)
{
    if ( 
itemid == g_itemid )
    {
        if ( 
user_has_weapon(playerCSW_HEGRENADE) ) 
        
give_item(player"weapon_hegrenade")                 
        
cs_set_user_bpammo(playerCSW_HEGRENADEget_pcvar_num(cvar_amount))
        
        
client_print(playerprint_chat"[ZP] You bought Extra HE-Grenade")
        
g_Bomb[player] = true;
    } 

Last edited by RainZ; 09-20-2011 at 08:12.
RainZ is offline
qwerty123
Junior Member
Join Date: May 2011
Old 09-27-2011 , 09:54   Re: item amount
Reply With Quote #9

PHP Code:
public zp_extra_item_selected(playeritemid)
{
    if ( 
itemid == g_itemid )
    {
        if ( 
user_has_weapon(playerCSW_HEGRENADE) ) 
        
give_item(player"weapon_hegrenade")                 
        
cs_set_user_bpammo(playerCSW_HEGRENADEget_pcvar_num(cvar_amount))
        
        
client_print(playerprint_chat"[ZP] You bought Extra HE-Grenade")
        
g_Bomb[player] = true;
    } 
==>

PHP Code:
public zp_extra_item_selected(playeritemid)
{
    if ( 
itemid == g_itemid )
    { 
        
give_item(player"weapon_hegrenade")                 
        
cs_set_user_bpammo(playerCSW_HEGRENADEget_pcvar_num(cvar_amount))
        
        
client_print(playerprint_chat"[ZP] You bought Extra HE-Grenade")
        
g_Bomb[player] = true;
    } 
qwerty123 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 19:30.


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