Raised This Month: $ Target: $400
 0% 

Bullets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 11-20-2013 , 21:17   Re: Bullets
Reply With Quote #1

To save code you can give_item inside the giving back pack ammo native.

Code:
 cs_set_user_bpammo( id , give_item( id , " weapon_mp5navy" ), 30 );
__________________

Last edited by Blizzard_87; 11-20-2013 at 21:22.
Blizzard_87 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 11-20-2013 , 23:35   Re: Bullets
Reply With Quote #2

Quote:
Originally Posted by Blizzard_87 View Post
To save code you can give_item inside the giving back pack ammo native.

Code:
 cs_set_user_bpammo( id , give_item( id , " weapon_mp5navy" ), 30 );
give_item() returns the index of the entity created, not the CSW_* constant ( which is what is required in cs_set_user_bpammo() ).

Sounds like your thinking of cs_set_weapon_ammo() where you would set the clip amount of the created weapon.
hornet is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 11-20-2013 , 23:45   Re: Bullets
Reply With Quote #3

Quote:
Originally Posted by hornet View Post
give_item() returns the index of the entity created, not the CSW_* constant ( which is what is required in cs_set_user_bpammo() ).

Sounds like your thinking of cs_set_weapon_ammo() where you would set the clip amount of the created weapon.
oh crap your right sorry.. donno what i was thinking.
__________________
Blizzard_87 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 23:16.


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