At the moment, there is no way to get the level with EventScriptsShell. If you use EventScriptsPython, you do it like that:
import es
import gungamelib
def player_spawn(event_var):
weapon = gungamelib.getPlayer(event_var['userid']).getWeapon()
es.tell(event_var['userid'], "Your current weapon is: %s" % str(weapon))
Because I don't know if you want to script in Python or Shell, this is the only thing I can tell you.