Hi there , could anyone set a limit for admin menu use , so admin can use it once every 10 minutes
i did try myself , but nothing seems to work ( idk why tho )
the main idea that i did use a variable
menu_available[id]=0
and a function to reset menu available
Code:
reset_menu_available(id) {
menu_available[id]=0
client_print(id,print_chat,"You can use admin menu again")
}
and added these lines after each cmd ( the working part )
Code:
set_task(600.0,"reset_menu_available",id)
menu_available[id]++
client_print(id,print_chat,"You can use admin menu again in 10 minutes")
and this code at the start of the cmd function
Code:
if(menu_available[id]) {
client_print(id,print_chat,"You can't use admin menu now , please wait")
retun PLUGIN_HANDLED
}
Any help would be appreciated , and thanks in advance
i'll attach the original zombie plague 4.3 fix5 if anyone wanna try