Dr.G
02-26-2010, 09:24 PM
If you for some weird reason what alot of grenades, more then we normaly can hold, this is a way to do it, i only tested this on windows and in this case it will give you 500 grenades...
Note that the HUD display will show i.e 100 as 10..
Bring your grenade forward and use the say command in the code below
#include <amxmodx>
#include <dodfun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0 by Dr.G"
#define AUTHOR "AMXX DoD Team"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /setclip", "setClip" )
}
public setClip(id)
{
new wpnid = get_user_weapon( id );
dod_set_user_ammo( id, wpnid, 500);
}
Happy nadeing!
- Cheers!
Note that the HUD display will show i.e 100 as 10..
Bring your grenade forward and use the say command in the code below
#include <amxmodx>
#include <dodfun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0 by Dr.G"
#define AUTHOR "AMXX DoD Team"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /setclip", "setClip" )
}
public setClip(id)
{
new wpnid = get_user_weapon( id );
dod_set_user_ammo( id, wpnid, 500);
}
Happy nadeing!
- Cheers!