View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-07-2017 , 11:40   Re: [HELP]Item Menu Limit Time/ Item Per Days.
Reply With Quote #7

Which part is un-understandable here ?
Code:
#include < amxmodx > #define TIME_BUY 10.0 new bool:g_bHasBought[ 33 ] ; public plugin_init( ) {     register_clcmd( "say /test", "BuyWeapon" ) ; } public BuyWeapon( id ) {     if( g_bHasBought[ id ] )     return PLUGIN_HANDLED ;     give_item( id, "weapon_m4a1" ) ;     g_bHasBought[ id ] = true ;     set_task( TIME_BUY, "ResetBool", id ) ; } public ResetBool( id ) {     g_bHasBought[ id ] = false ;     remove_task( id ) ; }
__________________

Last edited by edon1337; 04-07-2017 at 11:41.
edon1337 is offline