This will keep setting tasks for the 6 second interval, and will only chat one time per press\hold-down.
PHP Code:
public fw_CmdStart( id , uc_handle , seed )
{
if ( cs_get_user_team( id ) == CS_TEAM_T )
return PLUGIN_CONTINUE;
static iButtons , iOldButtons;
iButtons = get_uc( uc_handle , UC_Buttons );
if ( iButtons & IN_ATTACK2 )
{
iOldButtons = pev( id , pev_oldbuttons );
if ( ( KitMedico[id] < 1 ) && !( iOldButtons & IN_ATTACK2 ) )
{
ColorChat(id, "^x04[Nitro-Team.com]^x01 Ja usou o seu^x03 KitMedico^x01, espere ate receber novamente.");
return PLUGIN_CONTINUE;
}
KitMedico[id]--;
set_task(6.0, "UsarKitMedico", id);
Fazer_BarraTempo(id, 6);
}
return PLUGIN_CONTINUE;
}
__________________