/* AMX(x) Mod script. * * Admin Weapon II * by Mattcook * * * Description: Give clients weapons. * * Settings: amx_weaponmsg (0/1) - announces when a player gets a weapon * * Usage: amx_weapon * Example: amx_weapon Mattcook 43 * */ #include #include #include public plugin_init() { register_plugin("Admin Weapon II","1.0","Mattcook") register_cvar("amx_weaponmsg","0") register_concmd("amx_weapon","admin_weapon",ADMIN_LEVEL_A," ") } public admin_weapon(id,level,cid) { if ( !cmd_access(id,level,cid,3) ) return PLUGIN_HANDLED new arg1[32],arg2[8],weapon read_argv(1,arg1,31) read_argv(2,arg2,7) weapon = str_to_num(arg2) if ( equali(arg1,"@all") ) { new plist[32],pnum get_players(plist,pnum,"a") if (pnum==0) { console_print(id,"[AMX] There are no clients") return PLUGIN_HANDLED } for (new i=0; i