if (cs_get_user_money(id) >= iStartMoney) // If the player did not spend the money { // Your code } else // If the player has spent his money { // Your code }