Try this:
PHP Code:
register_forward( FM_CmdStart , "fw_CmdStart" );
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 );
iOldButtons = pev( id , pev_oldbuttons );
if ( ( iButtons & IN_ATTACK2 ) && !( iOldButtons & IN_ATTACK2 ) && !task_exists( id ) )
{
if( KitMedico[id] < 1)
{
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;
}
__________________