I might be wrong, but if forward button is pressed twice within 0.5 sec (not required to press them in a row), make_leap func will be executed
PHP Code:
new Float:buttonPressed[33] = 0
public plugin_init()
{
register_clcmd("forward", "hook_command")
}
public hook_command(id)
{
new Float:currentTime = get_gametime()
if(is_user_bot(id))
return PLUGIN_CONTINUE
if((currentTime - buttonPressed[id]) < 0.5) {
// make_leap(id) or whatever you want
} else {
buttonPressed[id] = currentTime
}
return PLUGIN_CONTINUE
}
__________________