if(cs_get_user_money(id) >= get_pcvar_num(g_Something)) { // Has more or same amount of money } else { // Doesn't have enough money }