Accessing Numbers Help

Ok, this is gonna be a bit hard to explain but… here we go. How would I get (lets say a cheat code) to give a certain amount of points with a given number? For example, in a text box I input GiveMePoints(1000) and whatever number is in those brackets thats the amount of points I would get? thx for ur time, wsp