Raised This Month: $ Target: $400
 0% 

Adding ammo slots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Friday13
Junior Member
Join Date: Oct 2007
Old 10-31-2007 , 14:49   Re: Adding ammo slots
Reply With Quote #1

Some one make the code. +Karma.
Friday13 is offline
mikes3ds
Member
Join Date: Jul 2005
Location: CA
Old 10-31-2007 , 16:22   Re: Adding ammo slots
Reply With Quote #2

Hey Wilson [29th ID] long time no see

http://wiki.alliedmods.net/Half-Life...nts#WeaponList


Also I think this will also work.
cs_set_user_bpammo
__________________
[img]http://img529.**************/img529/3995/omg6gp.png[/img]
mikes3ds is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-31-2007 , 17:18   Re: Adding ammo slots
Reply With Quote #3

I tried to increase the PrimaryAmmoMaxAmount by setting the message argument, but it doesn't work.
Decrease doesn't work either as you can see for m249 ammo.

Code:
#include <amxmodx> enum PcvarsNum {     awp,     scout,     m249,     famas,     m3,     usp,     fiveseven,     deagle,     p228,     glock18 } new pcvar[PcvarsNum] public plugin_precache() {     register_message( get_user_msgid("WeaponList") , "msg_WeaponList")     pcvar[awp] = register_cvar("max_ammo_awp", "30")    // 30     pcvar[scout] = register_cvar("max_ammo_scout", "180") // 90     pcvar[m249] = register_cvar("max_ammo_m249", "100") // 200     pcvar[famas] = register_cvar("max_ammo_famas", "180") // 90     pcvar[m3] = register_cvar("max_ammo_m3", "32") // 32     pcvar[usp] = register_cvar("max_ammo_usp", "100") // 100     pcvar[fiveseven] = register_cvar("max_ammo_fiveseven", "100") // 100     pcvar[deagle] = register_cvar("max_ammo_deagle", "35") // 35     pcvar[p228] = register_cvar("max_ammo_p228", "52") // 52     pcvar[glock18] = register_cvar("max_ammo_glock18", "120") // 120 } public plugin_init() {     register_plugin("AmmoMaxAmount","0.1","connor") } public msg_WeaponList() {     new num = get_msg_arg_int(2)     set_msg_arg_int(3, 0, get_pcvar_num(pcvar[PcvarsNum:num]))     return PLUGIN_CONTINUE }

Any ideas ?
ConnorMcLeod 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 01:20.


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