Maybe something like this?
PHP Code:
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "OnePL"
new last_used
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /something", "block_use")
}
public block_use(id) {
if(get_systime() - last_used < 86400 /*time in seconds*/) {
client_print(id, print_chat, "This command can use once per day!")
return PLUGIN_HANDLED
}
// code here
last_used = get_systime()
return PLUGIN_HANDLED
}