I don't really know how I can get
g_ammo from the main plugin.
Only found about boolean and string.
Main plugin:
Code:
new g_ammo[33]
public plugin_natives()
{
register_native("g_ammo", "_g_ammo", 1)
}
public _g_ammo(id)
{
return g_ammo[id]
}
Example of Sub-Plugin, so I know it's wrong. Just explaining and hope you understand what I mean.
Sub-Plugin:
Code:
native g_ammo(id)
stock _g_ammo(id) return g_ammo(id)
public function(id)
{
if(_g_ammo[id] < get_cvar_num("ammo"))
{
_g_ammo[id]++
}
}