Re-Added Check team function, changed CS_OnBuy

Re-Added Check team function, changed CS_OnBuy forward