How do I add experience points to my player?

I made the player shoot enemies and destroy them. Now I need to add experience points for each enemy I kill with my Player. It is important to me, because I need to unlock different weapons. I just need to add the ex. points system. Any help would be appreciated!
Comments
Every time you kill an enemy, change attribute xp to xp+1
then a actor where.
if xp = 10
Whatever
if xp = 20
Whatever
and so on.