What the fuck? That is a giant mess. Neither is it was the topic starter asked for. If he would like to do it your way I would recommend:
local crimTeam = createTeam("Criminals")
function setTeam(tPlayer)
setPlayerTeam(tPlayer, crimTeam)
outputChatBox("You Are Now Criminal", tPlayer, 255, 255, 0)
end
addCommandHandler("criminal", setTeam)