AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to give more than 1 nades ? (https://forums.alliedmods.net/showthread.php?t=130752)

zombieplague 06-27-2010 06:23

How to give more than 1 nades ?
 
PHP Code:

public zp_user_humanized_postid )
{
    if ( 
is_user_aliveid ) )
    {
        
give_itemid"weapon_hegrenade" )
        
give_itemid"weapon_hegrenade" )
    } 


i tried to give 2 grenade but only 1 was given

NiHiLaNTh 06-27-2010 06:25

Re: How to give more than 1 nades ?
 
Quote:

Originally Posted by zombieplague (Post 1221275)
PHP Code:

public zp_user_humanized_postid )
{
    if ( 
is_user_aliveid ) )
    {
        
give_itemid"weapon_hegrenade" )
        
give_itemid"weapon_hegrenade" )
    } 


i tried to give 2 grenade but only 1 was given

maybe
Code:
give_item ( id, "weapon_hegrenade" ) cs_set_user_bpammo ( id, CSW_HEGRENADE, 2 )

hleV 06-27-2010 07:22

Re: How to give more than 1 nades ?
 
AFAIK you can't without (or with) Orpheu module.

vL. 06-27-2010 07:40

Re: How to give more than 1 nades ?
 
Quote:

Originally Posted by NiHiLaNTh (Post 1221276)
maybe
Code:
PHP Code:

give_item id"weapon_hegrenade" 
cs_set_user_bpammo idCSW_HEGRENADE


Yep thats the way to do it.

Btw, next time use the SEARCH this thing has already been asked and answered.

One 06-27-2010 08:13

Re: How to give more than 1 nades ?
 
Quote:

Originally Posted by vL. (Post 1221326)
Yep thats the way to do it.

Btw, next time use the SEARCH this thing has already been asked and answered.

yea and asked by me.so dont post you searched and found nothing

vL. 06-27-2010 08:45

Re: How to give more than 1 nades ?
 
Quote:

Originally Posted by One (Post 1221363)
yea and asked by me.so dont post you searched and found nothing

Sorry but I didn't understand 90% of what you said, if I understood correctly you said that I haven't searched it.
Well I have and I know its there!

One of those topics is here: https://forums.alliedmods.net/showthread.php?t=127126


All times are GMT -4. The time now is 14:48.

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