ahh, yes I did, and this code will get the uhh 'maxteams' key and then depending on what the value is, use a switch for when it creates the new entity, this is code from the medicmod plugin..
basically this plugin would originally create one type of entity 'info_tfdetect' that consisted of just two teams.. I want the ability for 1, 2, and 4 teams.. that is why im trying to get this working
edit: what other ways can I get the keyvalue, it seems to be looping with it equaling 0.. doesnt that mean its not getting a value?