#include <amxmodx> #include <cstrike> #include <cl_buy> const g_iFlash_Max_Carry = 2; // max boughts per round new g_iFlash[ 33 ]; new b_Blocked[ 33 ] = { false, ... } public client_buy( id, item ) { if( item == CSW_FLASHBANG ) { g_iFlash[ id ]++ if( g_iFlash[ id ] > g_iFlash_Max_Carry ) { b_Blocked[ id ] = true; client_print( id, print_center, "You can't buy more flashbangs this round!" ); return PLUGIN_HANDLED; } } return PLUGIN_CONTINUE; }