PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <zombieplague>
#define PLUGIN "People with this flag gain extra 5 ammo"
#define VERSION "0.1"
#define AUTHOR "MuhdZaim"
new cvar_ammo
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar_ammo = register_cvar("zp_people_flag_amount", "5")
}
public client_connect(id)
{
if ( is_user_connected(id) )
{
if ( get_user_flags(id) && ADMIN_LEVEL_A )
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + get_pcvar_num ( cvar_ammo ) )
}
}
}
Nedd
STEAM for this
client_connect(id) will only detect player that connected with steam . It have several way for non-steam but I won't support
__________________