function GM:PlayerSay(ply, text, team) local originalText = text local loweredText = string.lower(text) if ( string.find("/", loweredtext) == 1 ) then -- See if / is the first thing used local epText = string.Explode(" ", loweredText) if (epText[1] == "job") then if (epText[2] ~= nil or epText[2] ~= " ") then jobChange(ply, epText[2]) else ply:ChatPrint("Syntax Error: /job [your-job]") end end else ply:ChatPrint("Bad Command") return text end return textendfunction jobChange(ply, name) ply:SetNWString( "job", name )end