Raised This Month: $ Target: $400
 0% 

[HELP]Menu Limit Item Per Days.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode