Try this.
- script StatReset -,{
OnPCLoginEvent:
query_sql("SELECT account_id FROM `char` WHERE str>=250 || agi>=250 || dex>=250 || luk>=250 || vit>=250 || int>=250 AND char_id='"+getcharid(0,strcharinfo(0))+"'",@account_id);
if(getarraysize(@account_id)>0)
resetstatus;
end;
}