Raised This Month: $51 Target: $400
 12% 

ammo code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 04-10-2018 , 09:17   ammo code
Reply With Quote #1

what are the code to give ammo (bullets) ? (not ammo packs from ZP)
Mr.J is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 04-10-2018 , 09:31   Re: ammo code
Reply With Quote #2

https://www.amxmodx.org/api/cstrike/__functions
CTRL+F look for ammo.
__________________
Relaxing is offline
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 04-10-2018 , 10:04   Re: ammo code
Reply With Quote #3

PHP Code:
#include <cstrike>

public give_ammo(id)
{
    
give_item(id"ammo_556nato"
    
cs_set_user_bpammo(idCSW_M4A1)
    
like that Then what ??


Last edited by Mr.J; 04-10-2018 at 10:23.
Mr.J is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 04-10-2018 , 10:35   Re: ammo code
Reply With Quote #4

Firstly you give weapon then you set it's ammo. The native it's in english, it properly displays what it does.
__________________
Relaxing is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-10-2018 , 10:57   Re: ammo code
Reply With Quote #5

Quote:
Originally Posted by Relaxing View Post
Firstly you give weapon then you set it's ammo. The native it's in english, it properly displays what it does.
Doesnt matter if you gave the ammo first
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 04-10-2018 , 11:00   Re: ammo code
Reply With Quote #6

Quote:
Originally Posted by Relaxing View Post
Firstly you give weapon then you set it's ammo. The native it's in english, it properly displays what it does.
not giving weapon , but giving 50 extra ammo (even if this weapon ammo beyond 254 ammo)
Mr.J is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-10-2018 , 11:03   Re: ammo code
Reply With Quote #7

Quote:
Originally Posted by Mr.J View Post
not giving weapon , but giving 50 extra ammo (even if this weapon ammo beyond 254 ammo)
cs_set_user_bpammo(id, CSW_M4A1, cs_get_user_bpammo(id,CSW_M4A1)+50)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 04-10-2018 , 11:12   Re: ammo code
Reply With Quote #8

Thx Natsheh and Relaxing
Mr.J 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 08:39.


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